HUB
Sign inSign up

fstab/gox

By fstab

•Updated over 10 years ago

Image
0

1.1K

fstab/gox repository overview

⁠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
    

Tag summary

Content type

Image

Digest

sha256:001c8f13b…

Size

207.4 MB

Last updated

over 10 years ago

docker pull fstab/gox