The mitchellh/gox Go cross compile tool.
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
Clone fstab/docker-gox from GitHub.
git clone https://github.com/fstab/docker-gox.git
Build the docker image
cd docker-gox
docker build -t="fstab/gox" .
Run with the same command as described above.
docker run -v $GOPATH:/home/go -t -i fstab/gox
Content type
Image
Digest
sha256:001c8f13b…
Size
207.4 MB
Last updated
over 10 years ago
docker pull fstab/gox