The go-dev docker container provides a lightweight Go development environment for use by Deis contributors. Many Deis component builds delegate to containers based on this image, thereby eliminating the need for contributors to install and manage any specific set of development tools and version thereof. Although created for use with Deis development, this image may prove generally useful to the Go community.
- based on the official go Docker image
- ginkgo: BDD testing framework for go
- glide: go dependency management
- golint: go source code linter
- gox: simple go cross-compiling tool
- shellcheck: static analysis for shell scripts
- upx: executable packer
Mount your local go code into a container's $GOPATH to run any go command or one of the
included tools or scripts. Here's an example of running glide up for deis/builder:
$ docker run --rm \
--env GO15VENDOREXPERIMENT=1 \
--volume $GOPATH/src/github.com/deis/builder:/go/src/github.com/deis/builder \
--workdir /go/src/github.com/deis/builder \
quay.io/deis/go-dev:latest \
glide upThe latest deis/go-dev Docker image is available at:
-
docker pull quay.io/deis/go-dev -
docker pull deis/go-dev