Skip to content

Commit 624adef

Browse files
authored
update (#365)
1 parent 0abd1b8 commit 624adef

File tree

2 files changed

+12
-17
lines changed

2 files changed

+12
-17
lines changed

linux/base.Dockerfile

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,12 +132,23 @@ RUN bash ./tdnfinstall.sh \
132132
xauth \
133133
screen \
134134
postgresql-devel \
135-
terraform \
136135
gh \
137136
redis \
138137
cpio \
139138
gettext
140139

140+
# Install Terraform
141+
142+
RUN TF_VERSION=$(curl -s https://checkpoint-api.hashicorp.com/v1/check/terraform | jq -r -M ".current_version") \
143+
&& wget -nv -O terraform.zip "https://releases.hashicorp.com/terraform/${TF_VERSION}/terraform_${TF_VERSION}_linux_amd64.zip" \
144+
&& wget -nv -O terraform.sha256 "https://releases.hashicorp.com/terraform/${TF_VERSION}/terraform_${TF_VERSION}_SHA256SUMS" \
145+
&& echo "$(grep "${TF_VERSION}_linux_amd64.zip" terraform.sha256 | awk '{print $1}') terraform.zip" | sha256sum -c \
146+
&& unzip terraform.zip \
147+
&& mv terraform /usr/local/bin/terraform \
148+
&& rm -f terraform.zip terraform.sha256 \
149+
&& unset TF_VERSION
150+
151+
141152
# Install azure-functions-core-tools
142153
RUN wget -nv -O Azure.Functions.Cli.zip `curl -fSsL https://api.github.com/repos/Azure/azure-functions-core-tools/releases/latest | grep "url.*linux-x64" | grep -v "sha2" | cut -d '"' -f4` \
143154
&& unzip -d azure-functions-cli Azure.Functions.Cli.zip \

linux/terraform/terraform

Lines changed: 0 additions & 16 deletions
This file was deleted.

0 commit comments

Comments
 (0)