File tree Expand file tree Collapse file tree 2 files changed +12
-17
lines changed Expand file tree Collapse file tree 2 files changed +12
-17
lines changed Original file line number Diff line number Diff line change @@ -132,12 +132,23 @@ RUN bash ./tdnfinstall.sh \
132
132
xauth \
133
133
screen \
134
134
postgresql-devel \
135
- terraform \
136
135
gh \
137
136
redis \
138
137
cpio \
139
138
gettext
140
139
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
+
141
152
# Install azure-functions-core-tools
142
153
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` \
143
154
&& unzip -d azure-functions-cli Azure.Functions.Cli.zip \
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments