Skip to content

Commit

Permalink
arm64: terraform
Browse files Browse the repository at this point in the history
Per https://www.terraform.io/cli/install/apt , there is no support for
`arm64`. Switching to downloading a .zip for both architectures is
preferable to having multiple installation paths.
  • Loading branch information
thepwagner committed Mar 10, 2022
1 parent f16a5e7 commit e513926
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -219,13 +219,13 @@ RUN curl https://sh.rustup.rs -sSf | sh -s -- -y --default-toolchain 1.58.0 --pr

USER root
ARG TERRAFORM_VERSION=1.1.6
RUN curl -fsSL https://apt.releases.hashicorp.com/gpg | apt-key add -
RUN apt-add-repository "deb [arch=amd64] https://apt.releases.hashicorp.com $(lsb_release -cs) main" \
&& apt-get update -y \
&& apt-get install -y --no-install-recommends terraform=${TERRAFORM_VERSION} \
&& terraform -help \
&& rm -rf /var/lib/apt/lists/*

ARG TERRAFORM_AMD64_CHECKSUM=3e330ce4c8c0434cdd79fe04ed6f6e28e72db44c47ae50d01c342c8a2b05d331
ARG TERRAFORM_ARM64_CHECKSUM=a53fb63625af3572f7252b9fb61d787ab153132a8984b12f4bb84b8ee408ec53
RUN cd /tmp \
&& curl -o terraform-${TARGETARCH}.tar.gz https://releases.hashicorp.com/terraform/${TERRAFORM_VERSION}/terraform_${TERRAFORM_VERSION}_linux_${TARGETARCH}.zip \
&& printf "$TERRAFORM_AMD64_CHECKSUM terraform-amd64.tar.gz\n$TERRAFORM_ARM64_CHECKSUM terraform-arm64.tar.gz\n" | sha256sum -c --ignore-missing - \
&& unzip -d /usr/local/bin terraform-${TARGETARCH}.tar.gz \
&& rm terraform-${TARGETARCH}.tar.gz

### DART

Expand Down

0 comments on commit e513926

Please sign in to comment.