This is built from centos:latest (7)
On running the container it will by default download the present latest version (terraform_0.6.6_linux_amd64.zip) from https://dl.bintray.com/mitchellh/terraform/ and place you in a shell.
If the version changes then start your container with the --env TERRAFORM_VERSION=X.X.X this will download that version of terraform (as long as filename format hasn't changed) and place you in a shell.
if you want to know if your version of terraform is the latest simple run "terraform version" when in the container and it will tell you if the version is out of date.
You can also manually download the terraform software once in the container by running the download_terraform.sh script (after setting the environment variable TERRAFORM_VERSION as required based on the output of terraform version).
FROM centos:latest MAINTAINER Unixdaddy <unixdaddyATgmail.com> ADD terraform /terraform_download/ RUN yum repolist && yum install wget unzip -y ENV TERRAFORM_VERSION 0.6.6 WORKDIR /terraform_download CMD /terraform_download/download_terraform.sh && bash
VAR=$TERRAFORM_VERSION cd /usr/local/bin rm terraform_*.zip wget https;//dl.bintray.com/mitchellh/terraform/terraform_${VAR}_linux_amd64.zip unzip -o terraform_*.zip
Content type
Image
Digest
sha256:e6965e810…
Size
85.7 MB
Last updated
almost 11 years ago
docker pull unixdaddy/terraform