Skip to content

Instantly share code, notes, and snippets.

@ryansch

ryansch/README.md

Last active Mar 21, 2017
Embed
What would you like to do?
Build terraform for macOS with docker

Run the following from the location of the terraform git clone:

docker run --rm -v $(pwd):/go/src/github.com/hashicorp/terraform -w /go/src/github.com/hashicorp/terraform -e XC_OS=darwin -e XC_ARCH=amd64 golang:latest bash -c "apt-get update && apt-get install -y zip && make bin"

Resulting binary is in pkg/darwin_amd64.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.