Sign inSign up

sjourdan/terraform

By sjourdan

•Updated about 9 years ago

a simple terraform docker container built on alpine

Image
1

7.8K

sjourdan/terraform repository overview

⁠Terraform (Docker Container)

Circle CI

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⁠.

⁠Supported tags

⁠Usage

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

⁠Known Bugs

⁠Build

$ make build
⁠Release Tags

The Docker Hub build is building versions across tags, so tag releases properly:

$ git tag <terraform version>
$ git push --tags

Tag summary

Content type

Image

Digest

Size

35.1 MB

Last updated

about 9 years ago

docker pull sjourdan/terraform