Sign inSign up

pmoore/godev

By pmoore

Updated over 11 years ago

Image
0

1.0K

pmoore/godev repository overview

Dev setup for golang with vim + plugins

This is my dev environment setup, hugely simplified thanks to Docker. This is what it contains (and I use):

Others:

  • AppEngine SDK for Golang, which I've been using for some projects.
  • Python, iPython, pip (for tools)
  • NodeJS, Bower, grunt-cli (for JS tools)
  • Other tools deemed necessary to work in a dev environment (like cmake, curl, g++, git etc.)

Personal usage

I've been using this setup since Dec'14. Only recently thought of releasing this to support more active golang development (c'mon, leave Python already!). I always had problem getting YouCompleteMe to work well in my dev environment with Golang, and with this setup, I fixed that problem once and for all.

Notes

Modify this Dockerfile to adjust to your usage pattern, preferences etc. If you think your contribution is of interest to general public, do send me a patch, and I'll definitely consider it.

Additions by pmoore

I recommend creating an alias on your host system, something like:

alias godev='docker run --name=godev --rm=true -v ${GOPATH}/src:/go/src -t -i pmoore/godev:latest'

This will mount your go source directory inside the container, so you don't need checkouts of your go projects inside the container. This way you can edit with ease from inside the container, but if you kill the container, your changes still exist locally. It also means you can still push source code changes from your host operating system, without needing keys etc in the container, or needing to use ssh agent etc.

Tag summary

Content type

Image

Digest

sha256:c26481c23

Size

-

Last updated

over 11 years ago

docker pull pmoore/godev