Skip to content

msoap/docker-golang-checks

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

33 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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:

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

Pre-installed tools:

About

Docker image for Go-code checks

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •  

Languages