Public | Automated Build

Last pushed: 2 months ago
Short Description
a simple terraform docker container built on alpine
Full Description

Terraform (Docker Container)

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
Docker Pull Command
Owner
sjourdan
Source Repository

Comments (0)