a simple terraform docker container built on alpine
7.2K
Terraform is a tool for building, changing, and versioning infrastructure safely and efficiently. Terraform can manage existing and popular service providers as well as custom in-house solutions.
This container exists because I need to easily and quickly switch between various specific versions of Terraform for different projects, and use the same linux binary whatever platform I'm using.
Since April 2016, there's a Terraform official Docker image.
0.9.11, latest (Dockerfile)0.9.10 (Dockerfile)0.9.9 (Dockerfile)0.9.8 (Dockerfile)0.9.6 (Dockerfile)0.9.5 (Dockerfile)0.9.4 (Dockerfile)0.9.3 (Dockerfile)0.9.2 (Dockerfile)0.9.1 (Dockerfile)0.9.0 (Dockerfile)0.9.0-beta2 (Dockerfile)0.8.8 (Dockerfile)0.8.7 (Dockerfile)0.8.6 (Dockerfile)0.8.5 (Dockerfile)0.8.4 (Dockerfile)0.8.3 (Dockerfile)0.8.2 (Dockerfile)0.8.1 (Dockerfile)0.8.0 (Dockerfile)0.8.0-rc3 (Dockerfile)0.8.0-rc2 (Dockerfile)0.8.0-rc1 (Dockerfile)0.8.0-beta2 (Dockerfile)0.7.13, (Dockerfile)0.7.12 (Dockerfile)0.7.11 (Dockerfile)0.8.0-beta1 (Dockerfile)0.7.10 (Dockerfile)0.7.9 (Dockerfile)0.7.8 (Dockerfile)0.7.7 (Dockerfile)0.7.6 (Dockerfile)0.7.5 (Dockerfile)0.7.4 (Dockerfile)0.7.3 (Dockerfile)0.7.2 (Dockerfile)0.7.1 (Dockerfile)0.7.0 (Dockerfile)0.7.0-rc4 (Dockerfile)0.7.0-rc3 (Dockerfile)0.7.0-rc2 (Dockerfile)0.6.160.6.15 (Dockerfile)0.6.14 (Dockerfile)Usage is basically the following:
$ docker run -it --rm -v `pwd`:/data sjourdan/terraform:<version> <terraform sub-command>
For example, if for a project you need version 0.6.14:
$ docker run -it --rm -v `pwd`:/data sjourdan/terraform:0.6.14
And for another project you need the later 0.6.15 version:
$ docker run -it --rm -v `pwd`:/data sjourdan/terraform:0.6.15
If you want terraform to create files (when terraform init by example) using
the current user id and not as root, add the LOCAL_USER_ID variable:
$ docker run -it --rm -v `pwd`:/data -e LOCAL_USER_ID=`id -u $USER` sjourdan/terraform:0.9.1 init
0.6.16 doesn't work because of this issue$ make build
The Docker Hub build is building versions across tags, so tag releases properly:
$ git tag <terraform version>
$ git push --tags
Content type
Image
Digest
Size
35.1 MB
Last updated
about 9 years ago
docker pull sjourdan/terraform