https://github.com/graze/docker-golang-tools
:wrench: extra tools for using golang
https://github.com/graze/docker-golang-tools
docker docker-image golang
Last synced: about 2 months ago
JSON representation
:wrench: extra tools for using golang
- Host: GitHub
- URL: https://github.com/graze/docker-golang-tools
- Owner: graze
- License: mit
- Created: 2016-11-11T10:21:34.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2017-02-16T12:08:48.000Z (over 9 years ago)
- Last Synced: 2025-12-26T09:51:12.026Z (6 months ago)
- Topics: docker, docker-image, golang
- Language: Roff
- Size: 8.79 KB
- Stars: 0
- Watchers: 10
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# docker-golang-tools
[](https://microbadger.com/images/graze/golang-tools "Get your own image badge on microbadger.com")
:wrench: A set of tools to develop in golang but not required in production.
## Supported tags and respective `Dockerfile` links
- [`tip`, `latest` (Dockerfile.tip)](Dockerfile.tip)
- [`1.8` (Dockerfile.1.8)](Dockerfile.1.8)
- [`1.7` (Dockerfile.1.7)](Dockerfile.1.7)
- [`1.6` (Dockerfile.1.6)](Dockerfile.1.6)
## The tools
- [glide](https://glide.sh): Package management using the `vendor` directory
- [godoc](https://godoc.org/golang.org/x/tools/cmd/godoc): Documentation
- [gofmt](https://golang.org/cmd/gofmt/): Auto formatter
- [goimports](https://godoc.org/golang.org/x/tools/cmd/goimports): Like gofmt, but ensures correct imports
- [golint](https://github.com/golang/lint): Ensure the provided go code conforms to some standards
## Usage
You can use this image directly
```bash
$ docker run --rm -it graze/golang-tools -v .:/go/src/github.com/package/dir -w /go/src/github.com/package/dir
```
Or by using a docker-compose entry:
```yaml
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:
```bash
$ docker-compose run --rm tools
```