diff --git a/.github/workflows/ci-master-pr.yml b/.github/workflows/ci-master-pr.yml index af03a7d..b38a56d 100644 --- a/.github/workflows/ci-master-pr.yml +++ b/.github/workflows/ci-master-pr.yml @@ -33,7 +33,7 @@ jobs: run: | git diff --exit-code - build-1-7-4: + build-1-7-5: runs-on: ubuntu-latest steps: - name: Checkout @@ -64,9 +64,9 @@ jobs: uses: actions/cache@v4 with: path: /tmp/.buildx-cache - key: ${{ runner.os }}-buildx-1.7.4-${{ github.sha }} + key: ${{ runner.os }}-buildx-1.7.5-${{ github.sha }} restore-keys: | - ${{ runner.os }}-buildx-1.7.4- + ${{ runner.os }}-buildx-1.7.5- ${{ runner.os }}-buildx- - name: Login to Docker Hub registry @@ -79,7 +79,7 @@ jobs: # This step generates the docker tags - name: Prepare - id: prep-1-7-4 + id: prep-1-7-5 run: | set -e @@ -92,7 +92,7 @@ jobs: # Generate docker image tags # E.g. 'v0.0.0-' and 'v0.0.0-abc0123-' # E.g. 'master-' and 'master-abc0123-' - VARIANT="1.7.4" + VARIANT="1.7.5" REF_VARIANT="${REF}-${VARIANT}" REF_SHA_VARIANT="${REF}-${SHA}-${VARIANT}" @@ -102,52 +102,52 @@ jobs: echo "REF_VARIANT=$REF_VARIANT" >> $GITHUB_OUTPUT echo "REF_SHA_VARIANT=$REF_SHA_VARIANT" >> $GITHUB_OUTPUT - - name: 1.7.4 - Build (PRs) + - name: 1.7.5 - Build (PRs) # Run only on pull requests if: github.event_name == 'pull_request' uses: docker/build-push-action@v5 with: - context: variants/1.7.4 + context: variants/1.7.5 platforms: linux/386,linux/amd64,linux/arm/v6,linux/arm/v7,linux/arm64 push: false tags: | - ${{ github.repository }}:${{ steps.prep-1-7-4.outputs.REF_VARIANT }} - ${{ github.repository }}:${{ steps.prep-1-7-4.outputs.REF_SHA_VARIANT }} + ${{ github.repository }}:${{ steps.prep-1-7-5.outputs.REF_VARIANT }} + ${{ github.repository }}:${{ steps.prep-1-7-5.outputs.REF_SHA_VARIANT }} cache-from: type=local,src=/tmp/.buildx-cache cache-to: type=local,dest=/tmp/.buildx-cache-new,mode=max - - name: 1.7.4 - Build and push (master) + - name: 1.7.5 - Build and push (master) # Run only on master if: github.ref == 'refs/heads/master' uses: docker/build-push-action@v5 with: - context: variants/1.7.4 + context: variants/1.7.5 platforms: linux/386,linux/amd64,linux/arm/v6,linux/arm/v7,linux/arm64 push: true tags: | - ${{ github.repository }}:${{ steps.prep-1-7-4.outputs.REF_VARIANT }} - ${{ github.repository }}:${{ steps.prep-1-7-4.outputs.REF_SHA_VARIANT }} + ${{ github.repository }}:${{ steps.prep-1-7-5.outputs.REF_VARIANT }} + ${{ github.repository }}:${{ steps.prep-1-7-5.outputs.REF_SHA_VARIANT }} cache-from: type=local,src=/tmp/.buildx-cache cache-to: type=local,dest=/tmp/.buildx-cache-new,mode=max - - name: 1.7.4 - Build and push (release) + - name: 1.7.5 - Build and push (release) if: startsWith(github.ref, 'refs/tags/') uses: docker/build-push-action@v5 with: - context: variants/1.7.4 + context: variants/1.7.5 platforms: linux/386,linux/amd64,linux/arm/v6,linux/arm/v7,linux/arm64 push: true tags: | - ${{ github.repository }}:${{ steps.prep-1-7-4.outputs.VARIANT }} - ${{ github.repository }}:${{ steps.prep-1-7-4.outputs.REF_VARIANT }} - ${{ github.repository }}:${{ steps.prep-1-7-4.outputs.REF_SHA_VARIANT }} + ${{ github.repository }}:${{ steps.prep-1-7-5.outputs.VARIANT }} + ${{ github.repository }}:${{ steps.prep-1-7-5.outputs.REF_VARIANT }} + ${{ github.repository }}:${{ steps.prep-1-7-5.outputs.REF_SHA_VARIANT }} ${{ github.repository }}:latest cache-from: type=local,src=/tmp/.buildx-cache cache-to: type=local,dest=/tmp/.buildx-cache-new,mode=max # This step generates the docker tags - name: Prepare - id: prep-1-7-4-jq-sops-ssh + id: prep-1-7-5-jq-sops-ssh run: | set -e @@ -160,7 +160,7 @@ jobs: # Generate docker image tags # E.g. 'v0.0.0-' and 'v0.0.0-abc0123-' # E.g. 'master-' and 'master-abc0123-' - VARIANT="1.7.4-jq-sops-ssh" + VARIANT="1.7.5-jq-sops-ssh" REF_VARIANT="${REF}-${VARIANT}" REF_SHA_VARIANT="${REF}-${SHA}-${VARIANT}" @@ -170,51 +170,51 @@ jobs: echo "REF_VARIANT=$REF_VARIANT" >> $GITHUB_OUTPUT echo "REF_SHA_VARIANT=$REF_SHA_VARIANT" >> $GITHUB_OUTPUT - - name: 1.7.4-jq-sops-ssh - Build (PRs) + - name: 1.7.5-jq-sops-ssh - Build (PRs) # Run only on pull requests if: github.event_name == 'pull_request' uses: docker/build-push-action@v5 with: - context: variants/1.7.4-jq-sops-ssh + context: variants/1.7.5-jq-sops-ssh platforms: linux/386,linux/amd64,linux/arm/v6,linux/arm/v7,linux/arm64 push: false tags: | - ${{ github.repository }}:${{ steps.prep-1-7-4-jq-sops-ssh.outputs.REF_VARIANT }} - ${{ github.repository }}:${{ steps.prep-1-7-4-jq-sops-ssh.outputs.REF_SHA_VARIANT }} + ${{ github.repository }}:${{ steps.prep-1-7-5-jq-sops-ssh.outputs.REF_VARIANT }} + ${{ github.repository }}:${{ steps.prep-1-7-5-jq-sops-ssh.outputs.REF_SHA_VARIANT }} cache-from: type=local,src=/tmp/.buildx-cache cache-to: type=local,dest=/tmp/.buildx-cache-new,mode=max - - name: 1.7.4-jq-sops-ssh - Build and push (master) + - name: 1.7.5-jq-sops-ssh - Build and push (master) # Run only on master if: github.ref == 'refs/heads/master' uses: docker/build-push-action@v5 with: - context: variants/1.7.4-jq-sops-ssh + context: variants/1.7.5-jq-sops-ssh platforms: linux/386,linux/amd64,linux/arm/v6,linux/arm/v7,linux/arm64 push: true tags: | - ${{ github.repository }}:${{ steps.prep-1-7-4-jq-sops-ssh.outputs.REF_VARIANT }} - ${{ github.repository }}:${{ steps.prep-1-7-4-jq-sops-ssh.outputs.REF_SHA_VARIANT }} + ${{ github.repository }}:${{ steps.prep-1-7-5-jq-sops-ssh.outputs.REF_VARIANT }} + ${{ github.repository }}:${{ steps.prep-1-7-5-jq-sops-ssh.outputs.REF_SHA_VARIANT }} cache-from: type=local,src=/tmp/.buildx-cache cache-to: type=local,dest=/tmp/.buildx-cache-new,mode=max - - name: 1.7.4-jq-sops-ssh - Build and push (release) + - name: 1.7.5-jq-sops-ssh - Build and push (release) if: startsWith(github.ref, 'refs/tags/') uses: docker/build-push-action@v5 with: - context: variants/1.7.4-jq-sops-ssh + context: variants/1.7.5-jq-sops-ssh platforms: linux/386,linux/amd64,linux/arm/v6,linux/arm/v7,linux/arm64 push: true tags: | - ${{ github.repository }}:${{ steps.prep-1-7-4-jq-sops-ssh.outputs.VARIANT }} - ${{ github.repository }}:${{ steps.prep-1-7-4-jq-sops-ssh.outputs.REF_VARIANT }} - ${{ github.repository }}:${{ steps.prep-1-7-4-jq-sops-ssh.outputs.REF_SHA_VARIANT }} + ${{ github.repository }}:${{ steps.prep-1-7-5-jq-sops-ssh.outputs.VARIANT }} + ${{ github.repository }}:${{ steps.prep-1-7-5-jq-sops-ssh.outputs.REF_VARIANT }} + ${{ github.repository }}:${{ steps.prep-1-7-5-jq-sops-ssh.outputs.REF_SHA_VARIANT }} cache-from: type=local,src=/tmp/.buildx-cache cache-to: type=local,dest=/tmp/.buildx-cache-new,mode=max # This step generates the docker tags - name: Prepare - id: prep-1-7-4-jq-libvirt-sops-ssh + id: prep-1-7-5-jq-libvirt-sops-ssh run: | set -e @@ -227,7 +227,7 @@ jobs: # Generate docker image tags # E.g. 'v0.0.0-' and 'v0.0.0-abc0123-' # E.g. 'master-' and 'master-abc0123-' - VARIANT="1.7.4-jq-libvirt-sops-ssh" + VARIANT="1.7.5-jq-libvirt-sops-ssh" REF_VARIANT="${REF}-${VARIANT}" REF_SHA_VARIANT="${REF}-${SHA}-${VARIANT}" @@ -237,45 +237,45 @@ jobs: echo "REF_VARIANT=$REF_VARIANT" >> $GITHUB_OUTPUT echo "REF_SHA_VARIANT=$REF_SHA_VARIANT" >> $GITHUB_OUTPUT - - name: 1.7.4-jq-libvirt-sops-ssh - Build (PRs) + - name: 1.7.5-jq-libvirt-sops-ssh - Build (PRs) # Run only on pull requests if: github.event_name == 'pull_request' uses: docker/build-push-action@v5 with: - context: variants/1.7.4-jq-libvirt-sops-ssh + context: variants/1.7.5-jq-libvirt-sops-ssh platforms: linux/386,linux/amd64,linux/arm/v6,linux/arm/v7,linux/arm64 push: false tags: | - ${{ github.repository }}:${{ steps.prep-1-7-4-jq-libvirt-sops-ssh.outputs.REF_VARIANT }} - ${{ github.repository }}:${{ steps.prep-1-7-4-jq-libvirt-sops-ssh.outputs.REF_SHA_VARIANT }} + ${{ github.repository }}:${{ steps.prep-1-7-5-jq-libvirt-sops-ssh.outputs.REF_VARIANT }} + ${{ github.repository }}:${{ steps.prep-1-7-5-jq-libvirt-sops-ssh.outputs.REF_SHA_VARIANT }} cache-from: type=local,src=/tmp/.buildx-cache cache-to: type=local,dest=/tmp/.buildx-cache-new,mode=max - - name: 1.7.4-jq-libvirt-sops-ssh - Build and push (master) + - name: 1.7.5-jq-libvirt-sops-ssh - Build and push (master) # Run only on master if: github.ref == 'refs/heads/master' uses: docker/build-push-action@v5 with: - context: variants/1.7.4-jq-libvirt-sops-ssh + context: variants/1.7.5-jq-libvirt-sops-ssh platforms: linux/386,linux/amd64,linux/arm/v6,linux/arm/v7,linux/arm64 push: true tags: | - ${{ github.repository }}:${{ steps.prep-1-7-4-jq-libvirt-sops-ssh.outputs.REF_VARIANT }} - ${{ github.repository }}:${{ steps.prep-1-7-4-jq-libvirt-sops-ssh.outputs.REF_SHA_VARIANT }} + ${{ github.repository }}:${{ steps.prep-1-7-5-jq-libvirt-sops-ssh.outputs.REF_VARIANT }} + ${{ github.repository }}:${{ steps.prep-1-7-5-jq-libvirt-sops-ssh.outputs.REF_SHA_VARIANT }} cache-from: type=local,src=/tmp/.buildx-cache cache-to: type=local,dest=/tmp/.buildx-cache-new,mode=max - - name: 1.7.4-jq-libvirt-sops-ssh - Build and push (release) + - name: 1.7.5-jq-libvirt-sops-ssh - Build and push (release) if: startsWith(github.ref, 'refs/tags/') uses: docker/build-push-action@v5 with: - context: variants/1.7.4-jq-libvirt-sops-ssh + context: variants/1.7.5-jq-libvirt-sops-ssh platforms: linux/386,linux/amd64,linux/arm/v6,linux/arm/v7,linux/arm64 push: true tags: | - ${{ github.repository }}:${{ steps.prep-1-7-4-jq-libvirt-sops-ssh.outputs.VARIANT }} - ${{ github.repository }}:${{ steps.prep-1-7-4-jq-libvirt-sops-ssh.outputs.REF_VARIANT }} - ${{ github.repository }}:${{ steps.prep-1-7-4-jq-libvirt-sops-ssh.outputs.REF_SHA_VARIANT }} + ${{ github.repository }}:${{ steps.prep-1-7-5-jq-libvirt-sops-ssh.outputs.VARIANT }} + ${{ github.repository }}:${{ steps.prep-1-7-5-jq-libvirt-sops-ssh.outputs.REF_VARIANT }} + ${{ github.repository }}:${{ steps.prep-1-7-5-jq-libvirt-sops-ssh.outputs.REF_SHA_VARIANT }} cache-from: type=local,src=/tmp/.buildx-cache cache-to: type=local,dest=/tmp/.buildx-cache-new,mode=max @@ -4084,7 +4084,7 @@ jobs: update-draft-release: needs: - - build-1-7-4 + - build-1-7-5 - build-1-6-6 - build-1-5-7 - build-1-4-7 @@ -4113,7 +4113,7 @@ jobs: publish-draft-release: needs: - - build-1-7-4 + - build-1-7-5 - build-1-6-6 - build-1-5-7 - build-1-4-7 @@ -4144,7 +4144,7 @@ jobs: update-dockerhub-description: needs: - - build-1-7-4 + - build-1-7-5 - build-1-6-6 - build-1-5-7 - build-1-4-7 diff --git a/README.md b/README.md index 6250da3..569e1fb 100644 --- a/README.md +++ b/README.md @@ -12,9 +12,9 @@ The base image is `alpine`. The image is not the closed-source [`hashicorp/terra | Tag | Dockerfile Build Context | |:-------:|:---------:| -| `:1.7.4`, `:latest` | [View](variants/1.7.4) | -| `:1.7.4-jq-sops-ssh` | [View](variants/1.7.4-jq-sops-ssh) | -| `:1.7.4-jq-libvirt-sops-ssh` | [View](variants/1.7.4-jq-libvirt-sops-ssh) | +| `:1.7.5`, `:latest` | [View](variants/1.7.5) | +| `:1.7.5-jq-sops-ssh` | [View](variants/1.7.5-jq-sops-ssh) | +| `:1.7.5-jq-libvirt-sops-ssh` | [View](variants/1.7.5-jq-libvirt-sops-ssh) | | `:1.6.6` | [View](variants/1.6.6) | | `:1.6.6-jq-sops-ssh` | [View](variants/1.6.6-jq-sops-ssh) | | `:1.6.6-jq-libvirt-sops-ssh` | [View](variants/1.6.6-jq-libvirt-sops-ssh) | diff --git a/generate/definitions/versions.json b/generate/definitions/versions.json index 6d2cf37..1aab943 100644 --- a/generate/definitions/versions.json +++ b/generate/definitions/versions.json @@ -1,7 +1,7 @@ { "terraform": { "versions": [ - "1.7.4", + "1.7.5", "1.6.6", "1.5.7", "1.4.7", diff --git a/variants/1.7.5-jq-libvirt-sops-ssh/Dockerfile b/variants/1.7.5-jq-libvirt-sops-ssh/Dockerfile new file mode 100644 index 0000000..4759378 --- /dev/null +++ b/variants/1.7.5-jq-libvirt-sops-ssh/Dockerfile @@ -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.7.5; \ + case "$( uname -m )" in \ + 'x86') \ + URL="https://releases.hashicorp.com/terraform/1.7.5/terraform_1.7.5_linux_386.zip"; \ + SHA256=e188ce5b45c9d10fa9a5a118438add2eab056d16587f774ecab93e3ca39e1bca; \ + ;; \ + 'x86_64') \ + URL="https://releases.hashicorp.com/terraform/1.7.5/terraform_1.7.5_linux_amd64.zip"; \ + SHA256=3ff056b5e8259003f67fd0f0ed7229499cfb0b41f3ff55cc184088589994f7a5; \ + ;; \ + 'armhf') \ + URL="https://releases.hashicorp.com/terraform/1.7.5/terraform_1.7.5_linux_arm.zip"; \ + SHA256=4e74db9394d5cdf0f91cf8fecd290216edf6cf06273eb8f55e35f26eac4a936a; \ + ;; \ + 'armv7l') \ + URL="https://releases.hashicorp.com/terraform/1.7.5/terraform_1.7.5_linux_arm.zip"; \ + SHA256=4e74db9394d5cdf0f91cf8fecd290216edf6cf06273eb8f55e35f26eac4a936a; \ + ;; \ + 'aarch64') \ + URL="https://releases.hashicorp.com/terraform/1.7.5/terraform_1.7.5_linux_arm64.zip"; \ + SHA256=08631c385667dd28f03b3a3f77cb980393af4a2fcfc2236c148a678ad9150c8c; \ + ;; \ + *) \ + 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" ] diff --git a/variants/1.7.5-jq-sops-ssh/Dockerfile b/variants/1.7.5-jq-sops-ssh/Dockerfile new file mode 100644 index 0000000..f6f8067 --- /dev/null +++ b/variants/1.7.5-jq-sops-ssh/Dockerfile @@ -0,0 +1,61 @@ +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.7.5; \ + case "$( uname -m )" in \ + 'x86') \ + URL="https://releases.hashicorp.com/terraform/1.7.5/terraform_1.7.5_linux_386.zip"; \ + SHA256=e188ce5b45c9d10fa9a5a118438add2eab056d16587f774ecab93e3ca39e1bca; \ + ;; \ + 'x86_64') \ + URL="https://releases.hashicorp.com/terraform/1.7.5/terraform_1.7.5_linux_amd64.zip"; \ + SHA256=3ff056b5e8259003f67fd0f0ed7229499cfb0b41f3ff55cc184088589994f7a5; \ + ;; \ + 'armhf') \ + URL="https://releases.hashicorp.com/terraform/1.7.5/terraform_1.7.5_linux_arm.zip"; \ + SHA256=4e74db9394d5cdf0f91cf8fecd290216edf6cf06273eb8f55e35f26eac4a936a; \ + ;; \ + 'armv7l') \ + URL="https://releases.hashicorp.com/terraform/1.7.5/terraform_1.7.5_linux_arm.zip"; \ + SHA256=4e74db9394d5cdf0f91cf8fecd290216edf6cf06273eb8f55e35f26eac4a936a; \ + ;; \ + 'aarch64') \ + URL="https://releases.hashicorp.com/terraform/1.7.5/terraform_1.7.5_linux_arm64.zip"; \ + SHA256=08631c385667dd28f03b3a3f77cb980393af4a2fcfc2236c148a678ad9150c8c; \ + ;; \ + *) \ + 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 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" ] diff --git a/variants/1.7.5/Dockerfile b/variants/1.7.5/Dockerfile new file mode 100644 index 0000000..9940793 --- /dev/null +++ b/variants/1.7.5/Dockerfile @@ -0,0 +1,49 @@ +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.7.5; \ + case "$( uname -m )" in \ + 'x86') \ + URL="https://releases.hashicorp.com/terraform/1.7.5/terraform_1.7.5_linux_386.zip"; \ + SHA256=e188ce5b45c9d10fa9a5a118438add2eab056d16587f774ecab93e3ca39e1bca; \ + ;; \ + 'x86_64') \ + URL="https://releases.hashicorp.com/terraform/1.7.5/terraform_1.7.5_linux_amd64.zip"; \ + SHA256=3ff056b5e8259003f67fd0f0ed7229499cfb0b41f3ff55cc184088589994f7a5; \ + ;; \ + 'armhf') \ + URL="https://releases.hashicorp.com/terraform/1.7.5/terraform_1.7.5_linux_arm.zip"; \ + SHA256=4e74db9394d5cdf0f91cf8fecd290216edf6cf06273eb8f55e35f26eac4a936a; \ + ;; \ + 'armv7l') \ + URL="https://releases.hashicorp.com/terraform/1.7.5/terraform_1.7.5_linux_arm.zip"; \ + SHA256=4e74db9394d5cdf0f91cf8fecd290216edf6cf06273eb8f55e35f26eac4a936a; \ + ;; \ + 'aarch64') \ + URL="https://releases.hashicorp.com/terraform/1.7.5/terraform_1.7.5_linux_arm64.zip"; \ + SHA256=08631c385667dd28f03b3a3f77cb980393af4a2fcfc2236c148a678ad9150c8c; \ + ;; \ + *) \ + 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 + +# Disable telemetry. See: https://developer.hashicorp.com/terraform/cli/commands#upgrade-and-security-bulletin-checks +ENV CHECKPOINT_DISABLE=1 + +CMD [ "terraform" ]