mirror of
https://git.vectorsigma.ru/public/atlantis.git
synced 2026-07-31 23:18:46 +00:00
To be clear, Atlantis was compatible with 0.12 before this commit, but this change makes 0.12 the default version *if* users haven't set the --default-tf-version flag.
14 lines
789 B
Docker
14 lines
789 B
Docker
# This Dockerfile builds the docker image used for running circle ci tests.
|
|
# We need terraform installed for our full test suite so it installs that.
|
|
# It's updated by running make build-testing-image which will also push a new
|
|
# image.
|
|
FROM circleci/golang:1.12
|
|
|
|
# Install Terraform
|
|
ENV TERRAFORM_VERSION=0.12.0
|
|
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
|