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 goreleaser --snapshot --rm-dist
To see an example of it running in travis check out https://github.com/mailchain/mailchain/blob/master/.travis.yml