The unofficial image of the Sonar Scanner, made with love by the community.
The SonarQube Scanner is recommended as the default launcher to analyze a project with SonarQube.
See: https://ismaelqueiroz.github.io
FROM ismaelqueiroz/sonar-scanner
You can then run the Docker image:
$ docker run --rm ismaelqueiroz/sonar-scanner sonar-scanner -v
Just replace YOUR-SONAR-SERVER with the IP-Address of your Sonar-Server of your choice.
When you start the sonar-scanner image, you can adjust the configuration of the instance by passing one or more environment variables either on the docker run command line. If you want to add a new environment variable:
- Execution add a
-e
option with each variable and value:
$ docker run --rm ismaelqueiroz/sonar-scanner \
-e SONAR_SCANNER_VERSION=3.3.0.1492 \
/bin/sh -c "update; sonar-scanner -v"
Available variables:
SONAR_SCANNER_HOME
: Sonar Scanner home. Default: /sonarscannerSONAR_SCANNER_VERSION
: Sonar Scanner version. Default: 3.3.0.1492
The Dockerfiles and associated scripts are licensed under the MIT License.