Skip to content

Instantly share code, notes, and snippets.



Last active Mar 21, 2017
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/ -w /go/src/ -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.