Skip to content

Instantly share code, notes, and snippets.

@tomzo
Created July 19, 2016 18:45
Show Gist options
  • Save tomzo/10db54d9f0e395811203c95157bbd92a to your computer and use it in GitHub Desktop.
Save tomzo/10db54d9f0e395811203c95157bbd92a to your computer and use it in GitHub Desktop.
Compile terraform from sources in docker
#!/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