Created
July 19, 2016 18:45
-
-
Save tomzo/10db54d9f0e395811203c95157bbd92a to your computer and use it in GitHub Desktop.
Compile terraform from sources in docker
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
git clone https://github.com/hashicorp/terraform.git | |
docker run --rm -v "$PWD/terraform":/go/src/github.com/hashicorp/terraform -w /go/src/github.com/hashicorp/terraform golang:1.6 bash -c 'apt-get update && apt-get install -y zip && XC_OS=linux XC_ARCH=amd64 make bin' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment