Public | Automated Build

Last pushed: 7 days ago
Short Description
Docker image for Go-code checks
Full Description

Go-code checks Docker image



GOPATH in container set to /go:/app

Get:

docker pull msoap/golang-checks

Run all checks (without gometalinter):

docker run -i --rm -v "$PWD":/app msoap/golang-checks go-checks.sh .

# alpine version:
docker run -i --rm -v "$PWD":/app msoap/golang-checks:alpine go-checks.sh .

# if your code use vendor and must been in GOPATH, run from local GOPATH:
docker run -i --rm -v "$PWD":/app/src/project-name -w /app/src/project-name msoap/golang-checks go-checks.sh .

Run gometalinter:

docker run -i --rm -v "$PWD":/app -w /app msoap/golang-checks gometalinter .

Run tests only:

docker run -i --rm -v "$PWD":/app -w /app msoap/golang-checks go test -v -race -cover

Run custom checks from shell:

docker run -it --rm -v "$PWD":/app -w /app msoap/golang-checks bash

Show test covearge:

docker run -i --rm -v "$PWD":/app -w /app msoap/golang-checks go-carpet -256colors | less

Show tools list:

docker run --rm msoap/golang-checks ls /go/bin

go-checks.sh run tools:

  • go test -v
  • go vet
  • golint
  • errcheck
  • diff -u <(gofmt -d *.go) <(echo -n)

Pre-installed tools:

Docker Pull Command
Owner
msoap
Source Repository

Comments (0)