Home

Awesome

Go-code checks Docker image

Docker Pulls Docker Stars

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:

Pre-installed tools: