Public | Automated Build

Last pushed: 2 years ago
Short Description
Short description is empty for this repo.
Full Description

docker-gox

The mitchellh/gox Go cross compile tool.

Run from Docker Hub

If the GOPATH environment variable is set correctly on the host system, fstab/gox can be run as follows:

docker run -v $GOPATH:/go -t -i fstab/gox

This will pull the image from docker hub, start the container, and launch a shell with the gox command available and the GOPATH mapped to /go.

If your project is something like github.com/your/proj, run gox as follows:

gox github.com/your/proj

You can also run docker and gox in a single call

docker run -v $GOPATH:/go -t -i fstab/gox gox github.com/your/proj

Build from Source

  1. Clone fstab/docker-gox from GitHub.

     git clone https://github.com/fstab/docker-gox.git
    
  2. Build the docker image

     cd docker-gox
     docker build -t="fstab/gox" .
    
  3. Run with the same command as described above.

     docker run -v $GOPATH:/home/go -t -i fstab/gox
    
Docker Pull Command
Owner
fstab
Source Repository