Docker container to do cross compilation (linux, windows, OSX) of go packages including support for cgo. Created for Mailchain can be used with any go project.
Find it on docker hub https://hub.docker.com/r/mailchain/goreleaser-xcgo or run
docker run --rm --privileged \
-v $PWD:/go/src/github.com/mailchain/mailchain \
-v /var/run/docker.sock:/var/run/docker.sock \
-w /go/src/github.com/mailchain/mailchain \
mailchain/goreleaser-xcgo --snapshot --rm-dist
To see an example of it running in travis check out https://github.com/mailchain/mailchain/blob/master/.travis.yml