https://github.com/mailchain/goreleaser-xcgo
Docker container to do cross compilation for mailchain
https://github.com/mailchain/goreleaser-xcgo
cgo docker golang goreleaser
Last synced: 6 months ago
JSON representation
Docker container to do cross compilation for mailchain
- Host: GitHub
- URL: https://github.com/mailchain/goreleaser-xcgo
- Owner: mailchain
- License: mit
- Created: 2019-04-27T13:45:57.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2022-01-31T12:14:48.000Z (over 4 years ago)
- Last Synced: 2024-06-20T12:52:50.311Z (about 2 years ago)
- Topics: cgo, docker, golang, goreleaser
- Language: Dockerfile
- Size: 17.6 KB
- Stars: 35
- Watchers: 4
- Forks: 11
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# goreleaser-xcgo
[](/LICENSE.md)
[](https://travis-ci.com/mailchain/goreleaser-xcgo)
Docker container to do cross compilation (linux, windows, OSX) of go packages including support for cgo. Created for [Mailchain](https://github.com/mailchain/mailchain) can be used with any go project.
## Docker
Find it on docker hub https://hub.docker.com/r/mailchain/goreleaser-xcgo or run
```bash
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
```
## Travis
To see an example of it running in travis check out https://github.com/mailchain/mailchain/blob/master/.travis.yml