-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' of github.com:runatlantis/atlantis into docker-…
…multi-platform * 'master' of github.com:runatlantis/atlantis: docker(testing): updating image build process docs: fix policy check documentation examples (#1945) build: make multi-platform image for testing-env
- Loading branch information
Showing
3 changed files
with
45 additions
and
33 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,22 +1,26 @@ | ||
FROM circleci/golang:1.17 | ||
FROM golang:1.17 | ||
|
||
RUN apt-get update && apt-get install unzip | ||
|
||
# Install Terraform | ||
ENV TERRAFORM_VERSION=1.1.1 | ||
RUN curl -LOks https://releases.hashicorp.com/terraform/${TERRAFORM_VERSION}/terraform_${TERRAFORM_VERSION}_linux_amd64.zip && \ | ||
sudo mkdir -p /usr/local/bin/tf/versions/${TERRAFORM_VERSION} && \ | ||
sudo unzip terraform_${TERRAFORM_VERSION}_linux_amd64.zip -d /usr/local/bin/tf/versions/${TERRAFORM_VERSION} && \ | ||
sudo ln -s /usr/local/bin/tf/versions/${TERRAFORM_VERSION}/terraform /usr/local/bin/terraform && \ | ||
rm terraform_${TERRAFORM_VERSION}_linux_amd64.zip | ||
RUN case $(uname -m) in x86_64|amd64) ARCH="amd64" ;; aarch64|arm64|armv8) ARCH="arm64" ;; esac && \ | ||
wget -nv -O terraform.zip https://releases.hashicorp.com/terraform/${TERRAFORM_VERSION}/terraform_${TERRAFORM_VERSION}_linux_${ARCH}.zip && \ | ||
mkdir -p /usr/local/bin/tf/versions/${TERRAFORM_VERSION} && \ | ||
unzip terraform.zip -d /usr/local/bin/tf/versions/${TERRAFORM_VERSION} && \ | ||
ln -s /usr/local/bin/tf/versions/${TERRAFORM_VERSION}/terraform /usr/local/bin/terraform && \ | ||
rm terraform.zip | ||
|
||
# Install conftest | ||
ENV CONFTEST_VERSION=0.28.3 | ||
RUN curl -LOs https://github.com/open-policy-agent/conftest/releases/download/v${CONFTEST_VERSION}/conftest_${CONFTEST_VERSION}_Linux_x86_64.tar.gz && \ | ||
RUN case $(uname -m) in x86_64|amd64) ARCH="amd64" ;; aarch64|arm64|armv8) ARCH="arm64" ;; esac && \ | ||
curl -LOs https://github.com/open-policy-agent/conftest/releases/download/v${CONFTEST_VERSION}/conftest_${CONFTEST_VERSION}_Linux_${ARCH}.tar.gz && \ | ||
curl -LOs https://github.com/open-policy-agent/conftest/releases/download/v${CONFTEST_VERSION}/checksums.txt && \ | ||
sed -n "/conftest_${CONFTEST_VERSION}_Linux_x86_64.tar.gz/p" checksums.txt | sha256sum -c && \ | ||
sudo mkdir -p /usr/local/bin/cft/versions/${CONFTEST_VERSION} && \ | ||
sudo tar -C /usr/local/bin/cft/versions/${CONFTEST_VERSION} -xzf conftest_${CONFTEST_VERSION}_Linux_x86_64.tar.gz && \ | ||
sudo ln -s /usr/local/bin/cft/versions/${CONFTEST_VERSION}/conftest /usr/local/bin/conftest${CONFTEST_VERSION} && \ | ||
rm conftest_${CONFTEST_VERSION}_Linux_x86_64.tar.gz && \ | ||
sed -n "/conftest_${CONFTEST_VERSION}_Linux_${ARCH}.tar.gz/p" checksums.txt | sha256sum -c && \ | ||
mkdir -p /usr/local/bin/cft/versions/${CONFTEST_VERSION} && \ | ||
tar -C /usr/local/bin/cft/versions/${CONFTEST_VERSION} -xzf conftest_${CONFTEST_VERSION}_Linux_${ARCH}.tar.gz && \ | ||
ln -s /usr/local/bin/cft/versions/${CONFTEST_VERSION}/conftest /usr/local/bin/conftest${CONFTEST_VERSION} && \ | ||
rm conftest_${CONFTEST_VERSION}_Linux_${ARCH}.tar.gz && \ | ||
rm checksums.txt | ||
|
||
RUN go get golang.org/x/tools/cmd/goimports |