Skip to content

Commit a41cbb0

Browse files
authored
chore(dogfood): align Terraform version to that of dockerfile.base (#11227)
1 parent 1e49190 commit a41cbb0

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

dogfood/Dockerfile

+9-1
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,6 @@ RUN apt-get update --quiet && apt-get install --yes \
158158
docker-ce-cli \
159159
docker-compose-plugin \
160160
packer \
161-
terraform \
162161
fish \
163162
unzip \
164163
zstd \
@@ -169,6 +168,15 @@ RUN apt-get update --quiet && apt-get install --yes \
169168
# Configure FIPS-compliant policies
170169
update-crypto-policies --set FIPS
171170

171+
# NOTE: In scripts/Dockerfile.base we specifically install Terraform version 1.5.7
172+
# as it is the last version licensed under the MPL. Installing the same version
173+
# here for consistency.
174+
RUN wget -O /tmp/terraform.zip "https://releases.hashicorp.com/terraform/1.5.7/terraform_1.5.7_linux_amd64.zip" && \
175+
unzip /tmp/terraform.zip -d /usr/local/bin && \
176+
rm -f /tmp/terraform.zip && \
177+
chmod +x /usr/local/bin/terraform && \
178+
terraform --version
179+
172180
# Install the docker buildx component.
173181
RUN DOCKER_BUILDX_VERSION=$(curl -s "https://api.github.com/repos/docker/buildx/releases/latest" | grep '"tag_name":' | sed -E 's/.*"(v[^"]+)".*/\1/') && \
174182
mkdir -p /usr/local/lib/docker/cli-plugins && \

0 commit comments

Comments
 (0)