Docker SonarQube Scanner
737
The SonarQube Scanner is recommended as the default launcher to analyse a project with SonarQube.
A sonar-project.properties (or it's equivalent in dynamic configuration) is required in the root of you project with as a minimum the following values:
sonar.projectKey=uniqueKey
sonar.projectName=Project Name
sonar.projectVersion=0.0.1
sonar.sources=.
sonar.projectDescription=Project Description
By default https://sonarcloud.io is assumed to be the server to connect to.
docker run --rm --user $(id -u):$(id -g) -w /data -v $(pwd):/data localgod/docker-sonarqube-scanner:3.0.3.778 <parameters_if_required>
You can override this by providing the server name as a environment variable:
docker run --rm --user $(id -u):$(id -g) -e "SONAR_HOST=http://localhost:9000" -w /data -v $(pwd):/data localgod/docker-sonarqube-scanner:3.0.3.778 <parameters_if_required>
Content type
Image
Digest
sha256:6cf2d8ef1…
Size
207.8 MB
Last updated
almost 2 years ago
docker pull localgod/docker-sonarqube-scanner