Skip to content

fstab/docker-gox

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 

Repository files navigation

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

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published