Giter Club home page Giter Club logo

goreleaser-xcgo's Introduction

goreleaser-xcgo

Software License Travis

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.

Docker

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

Travis

To see an example of it running in travis check out https://github.com/mailchain/mailchain/blob/master/.travis.yml

goreleaser-xcgo's People

Contributors

robdefeo avatar suz-stripe avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

goreleaser-xcgo's Issues

Docs: docker run example has superflous "goreleaser" arg

I suspect the example to start the container (from README.md and also in the medium article) has a mistake. Running this:

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

outputs:

57957ac2c49f: Pull complete 
4e487665a411: Pull complete 
Digest: sha256:ec1500c259a8d166b8a706190d0388edc80d80c2e5db28ea5c622332dd1a10f6
Status: Downloaded newer image for mailchain/goreleaser-xcgo:latest

goreleaser: error: unexpected goreleaser, try --help

The goreleaser arg on the last line probably shouldn't be there, as the goreleaser command will be invoked on container run via entrypoint.sh:

  • Thanks for having put this image out there, saved me a lot of effort.

Docs: possible typo in the updated medium article

As a follow on to #1 ... from a quick glance, the updated medium article has a different example from the README.

  • README: -v $PWD:/go/src/github.com/mailchain/mailchain
  • Article: -v ($pwd):/go/src/github.com/mailchain/mailchain \

Note the pwd part in the article snippet, I'm guessing that's a typo?

Also, if you're going to be in there digging around, it might be useful to include a link to the medium article from README.md for anybody who stumbles onto the repo without having found it via the article. Thanks again for building this.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.