Skip to content

raducrisan1/sonar-scanner-go

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 

Repository files navigation

sonar-scanner-go

This docker image adds golang v1.13 and sonar-scanner 4.2 on top of java:alpine image. It is useful for integrating SonarQube for golang projects. I personally use this image in a custom helm chart.

Example to run this image:

export PROJECT_ROOT=~/your/path/to/golang/project

docker run -it --rm -v $PROJECT_ROOT:/app --name test-sonar-scanner-go \
--env SONARQUBE_SERVER=http://localhost:9000 \
--env SONARQUBE_PROJECT_KEY=project-key \
--env SONARQUBE_SOURCES=/drone/src \
--env SONARQUBE_LOGIN=<sonarqube-token> raducrisan/sonarscanner-go

For more information, see: Go for Sonarqube