Skip to content

Commit edcaa40

Browse files
committed
Update Dockerfile used for terraform
1 parent 1c37ca8 commit edcaa40

1 file changed

Lines changed: 13 additions & 10 deletions

File tree

internal/servicedeployer/_static/Dockerfile.terraform_deployer

Lines changed: 13 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,22 @@
1-
FROM --platform=linux/amd64 ubuntu:20.04
2-
ENV GCLOUD_SDK_VERSION 370.0.0-0
3-
ENV TERRAFORM_VERSION 1.1.4
1+
FROM --platform=linux/amd64 ubuntu:24.04
2+
ENV GCLOUD_SDK_VERSION=467.0.0-0
3+
ENV TERRAFORM_VERSION=1.9.6
44

55
RUN apt-get -qq update \
6-
&& apt-get install -yq curl apt-transport-https ca-certificates gnupg
6+
&& apt-get install -yq curl apt-transport-https ca-certificates gnupg \
7+
&& apt-get clean
78

89
RUN echo "deb [signed-by=/usr/share/keyrings/cloud.google.gpg] https://packages.cloud.google.com/apt cloud-sdk main" | tee -a /etc/apt/sources.list.d/google-cloud-sdk.list \
9-
&& curl https://packages.cloud.google.com/apt/doc/apt-key.gpg | apt-key --keyring /usr/share/keyrings/cloud.google.gpg add - \
10+
&& curl https://packages.cloud.google.com/apt/doc/apt-key.gpg | gpg --dearmor -o /usr/share/keyrings/cloud.google.gpg \
1011
&& apt-get update -qq \
11-
&& apt-get install google-cloud-sdk=${GCLOUD_SDK_VERSION} -yq
12+
&& apt-get install google-cloud-sdk=${GCLOUD_SDK_VERSION} -yq \
13+
&& apt-get clean
1214

13-
RUN echo "deb [arch=amd64] https://apt.releases.hashicorp.com focal main" | tee -a /etc/apt/sources.list.d/hashicorp.list \
14-
&& curl -fsSL https://apt.releases.hashicorp.com/gpg | apt-key add - \
15-
&& apt-get -qq update \
16-
&& apt-get install -yq terraform=${TERRAFORM_VERSION}
15+
RUN curl -fsSL https://apt.releases.hashicorp.com/gpg | gpg --dearmor -o /usr/share/keyrings/hashicorp-archive-keyring.gpg \
16+
&& echo "deb [signed-by=/usr/share/keyrings/hashicorp-archive-keyring.gpg] https://apt.releases.hashicorp.com noble main" | tee /etc/apt/sources.list.d/hashicorp.list \
17+
&& apt-get update -qq \
18+
&& apt-get install -yq terraform=${TERRAFORM_VERSION}-1 \
19+
&& apt-get clean
1720

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

0 commit comments

Comments
 (0)