kmcgrath / docker-godev

Docker development environment for golang

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

godev

Go development with Vim+Janus, vim-go binaries and godep

Docker Hub: kmcgrath/godev

Github: kmcgrath/docker-godev

Use

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

Get a shell

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.

Straight to vim

docker run -it -v "$PWD":/go/src/APP  -w /go/src/APP kmcgrath/godev vim .

Run a Makefile

docker run -it -v "$PWD":/go/src/APP  -w /go/src/APP kmcgrath/godev make

About

Docker development environment for golang


Languages

Language:Roff 82.6%Language:Makefile 17.4%