-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #75 from theohbrothers/enhancement/bump-terraform-…
…1.8-variants-to-1.8.2 Enhancement: Bump terraform 1.8 variants to 1.8.2
- Loading branch information
Showing
6 changed files
with
228 additions
and
55 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
{ | ||
"terraform": { | ||
"versions": [ | ||
"1.8.1", | ||
"1.8.2", | ||
"1.7.5", | ||
"1.6.6", | ||
"1.5.7", | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,63 @@ | ||
FROM alpine:3.17 | ||
ARG TARGETPLATFORM | ||
ARG BUILDPLATFORM | ||
RUN echo "I am running on $BUILDPLATFORM, building for $TARGETPLATFORM" | ||
# Install terraform | ||
RUN set -eux; \ | ||
TERRAFORM_VERSION=1.8.2; \ | ||
case "$( uname -m )" in \ | ||
'x86') \ | ||
URL="https://releases.hashicorp.com/terraform/1.8.2/terraform_1.8.2_linux_386.zip"; \ | ||
SHA256=1684b980636e857067aa68edc099d386360831ecc58c76cc6e0f980bca87866a; \ | ||
;; \ | ||
'x86_64') \ | ||
URL="https://releases.hashicorp.com/terraform/1.8.2/terraform_1.8.2_linux_amd64.zip"; \ | ||
SHA256=74f3cc4151e52d94e0ecbe900552adc9b8440b4a8dc12f7fdaab2d0280788acc; \ | ||
;; \ | ||
'armhf') \ | ||
URL="https://releases.hashicorp.com/terraform/1.8.2/terraform_1.8.2_linux_arm.zip"; \ | ||
SHA256=938c111ff0e0b895347c94e7865ff29edb088e205d715621d2fa63d509eeb163; \ | ||
;; \ | ||
'armv7l') \ | ||
URL="https://releases.hashicorp.com/terraform/1.8.2/terraform_1.8.2_linux_arm.zip"; \ | ||
SHA256=938c111ff0e0b895347c94e7865ff29edb088e205d715621d2fa63d509eeb163; \ | ||
;; \ | ||
'aarch64') \ | ||
URL="https://releases.hashicorp.com/terraform/1.8.2/terraform_1.8.2_linux_arm64.zip"; \ | ||
SHA256=e00726a0c8e4b06b31873446c639454358a0efb73a604198473f526d60e66100; \ | ||
;; \ | ||
*) \ | ||
echo "Architecture not supported"; \ | ||
exit 1; \ | ||
;; \ | ||
esac; \ | ||
FILE=terraform.zip; \ | ||
wget -q "$URL" -O "$FILE"; \ | ||
echo "$SHA256 $FILE" | sha256sum -c -; \ | ||
unzip "$FILE" terraform; \ | ||
mkdir -pv /usr/local/bin; \ | ||
mv -v terraform /usr/local/bin/terraform; \ | ||
chmod +x /usr/local/bin/terraform; \ | ||
CHECKPOINT_DISABLE=1 terraform version; \ | ||
: | ||
|
||
RUN apk add --no-cache ca-certificates | ||
|
||
RUN apk add --no-cache jq | ||
|
||
RUN apk add --no-cache libvirt-client | ||
|
||
RUN set -eux; \ | ||
wget -qO- https://github.com/mozilla/sops/releases/download/v3.7.1/sops-v3.7.1.linux > /usr/local/bin/sops; \ | ||
chmod +x /usr/local/bin/sops; \ | ||
sha256sum /usr/local/bin/sops | grep '^185348fd77fc160d5bdf3cd20ecbc796163504fd3df196d7cb29000773657b74 '; \ | ||
sops --version | ||
|
||
RUN apk add --no-cache gnupg | ||
|
||
RUN apk add --no-cache openssh-client sshpass | ||
|
||
# Disable telemetry. See: https://developer.hashicorp.com/terraform/cli/commands#upgrade-and-security-bulletin-checks | ||
ENV CHECKPOINT_DISABLE=1 | ||
|
||
CMD [ "terraform" ] |
Oops, something went wrong.