Go development with Vim+Janus, vim-go binaries and godep
Docker Hub: kmcgrath/godev
Github: kmcgrath/docker-godev
The following commands will mount the current directory on the host in
the GOPATH
in the container. The working directory will be set to
that directory.
Replace APP
in /go/src/APP
with the name of your application, such as:
/go/src/my-app
or
/go/src/github.com/username/my-app
docker run -it -v "$PWD":/go/src/APP -w /go/src/APP kmcgrath/godev bash
Within a shell there is access to go
, godep
, vim
and other go
binaries. This is a good place to do go get
and godep save
. The
vendors
and Godeps
directories will be written to the bind mount on the
host.
docker run -it -v "$PWD":/go/src/APP -w /go/src/APP kmcgrath/godev vim .
docker run -it -v "$PWD":/go/src/APP -w /go/src/APP kmcgrath/godev make