Public | Automated Build

Last pushed: 3 days ago
Short Description
Set of tools for golang development
Full Description

docker-golang-tools

:wrench: 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>
Docker Pull Command
Owner
graze
Source Repository