-
Notifications
You must be signed in to change notification settings - Fork 118
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add GCP Cloud SDK to Terraform deployer image #638
Conversation
💚 Build Succeeded
Expand to view the summary
Build stats
Test stats 🧪
🤖 GitHub commentsTo re-run your PR in the CI, just comment with:
|
FROM python:3-alpine | ||
|
||
# required by gcloud SDK | ||
RUN apk add curl |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: apk add --no-cache
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
also:
I checked here and there is also Git and OpenSSH installed in the original Docker image. Let's add them also to this custom one.
|
||
COPY --from=terraform /bin/terraform /usr/bin/terraform | ||
|
||
ENV TF_IN_AUTOMATION=true |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
Hey @endorama! Please ping me when this PR is ready for another review round :) |
@mtojek Just updated with all requested changes! (Thanks for the ping, it slipped through ;)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@endorama Looks good to me, but let's merge latest master branch to make sure that it's ok :)
Terraform deployer image may need some additional Cloud Service Provider specific tooling to handle corner cases not handled by Terraform itself. In this case this commits adds support for `bq` tool from GCP Cloud SDK. As `bq` and the entire GCP Cloud SDK requires python, is easy to add AWS or Azure dedicated tooling in the future (as both are Python-based).
Terraform deployer image may need some additional Cloud Service Provider specific tooling to handle corner cases not handled by Terraform itself.
In this case this commits adds support for
bq
tool from GCP Cloud SDK.As
bq
and the entire GCP Cloud SDK requires python, is easy to add AWS or Azure dedicated tooling in the future (as both are Python-based).This PR is a follow-up for thread we started in https://github.com/elastic/integrations/pull/2312/files/f9557ea229de629c78ccb5d736efec2ab8ae104b#diff-6f3fb9692206fe5de2c5656d237ad692e6772234331ed60d7c91e674072d417e, where more CSP dedicated tools where needed in the Terraform deployer Docker image.