Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 20 additions & 2 deletions internal/install/_static/Dockerfile.terraform_deployer
Original file line number Diff line number Diff line change
@@ -1,6 +1,24 @@
FROM hashicorp/terraform:light
ENV TF_IN_AUTOMATION=true
FROM hashicorp/terraform:light as terraform

FROM python:3-alpine

# required by gcloud SDK
RUN apk add --no-cache git openssh curl

ENV GCLOUD_SDK_VERSION 367.0.0
ENV PATH $PATH:/usr/local/gcloud/google-cloud-sdk/bin
RUN curl "https://dl.google.com/dl/cloudsdk/channels/rapid/downloads/google-cloud-sdk-$GCLOUD_SDK_VERSION-linux-x86_64.tar.gz" > /tmp/google-cloud-sdk.tar.gz \
&& mkdir -p /usr/local/gcloud \
&& tar -C /usr/local/gcloud -xvf /tmp/google-cloud-sdk.tar.gz \
&& /usr/local/gcloud/google-cloud-sdk/install.sh -q --override-components="bq" \
&& rm /tmp/google-cloud-sdk.tar.gz

HEALTHCHECK --timeout=3s CMD sh -c "[ -f /tmp/tf-applied ]"

COPY --from=terraform /bin/terraform /usr/bin/terraform

ENV TF_IN_AUTOMATION=true
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

ADD run.sh /
WORKDIR /workspace

ENTRYPOINT sh /run.sh