🔧 extra tools for using golang
Roff Makefile
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
Dockerfile.1.6
Dockerfile.1.7
Dockerfile.1.8
Dockerfile.tip
LICENSE
Makefile
README.md

README.md

docker-golang-tools

🔧 A set of tools to develop in golang but not required in production.

Supported tags and respective Dockerfile links

The tools

  • glide: Package management using the vendor directory
  • godoc: Documentation
  • gofmt: Auto formatter
  • goimports: Like gofmt, but ensures correct imports
  • golint: Ensure the provided go code conforms to some standards

Usage

You can use this image directly

$ docker run --rm -it graze/golang-tools -v .:/go/src/github.com/package/dir -w /go/src/github.com/package/dir <command>

Or by using a docker-compose entry:

version: '2'
services:
    tools:
        image: graze/golang-tools
        volumes:
            - .:/go/src/github.com/graze/app
            - ~/.ssh/id_rsa:/root/.ssh/id_rsa:ro
        working_dir: /go/src/github.com/graze/app

This can then be called using:

$ docker-compose run --rm tools <command>