docker run --rm \
-e SONAR_HOST_URL=http://XXX.XXX.XXX.XXX:9000 \
-e SONAR_SOURCE=/opt/code \
-v $(pwd)/my_source_folder:/opt/code \
tsgkadot/docker-sonar-scanner:latest
| Config | Value |
|---|---|
| SONAR_PROJECT_KEY | my:project |
| SONAR_PROJECT_NAME | my project |
| SONAR_PROJECT_VERSION | 1.0 |
| SONAR_SOURCE | . |
| SONAR_SOURCE_ENCODING | UTF-8 |
| SONAR_HOST | http://localhost:9000 |
| SONAR_SCANNER_OPTS | -Xms512m |
| Config | Description |
|---|---|
| SONAR_PROJECT_BASEDIR | Use this property when you need analysis to take place in a directory other than the one from which it starts. |
| SONAR_LANGUAGE | if not set, multi-language analysis will be used. |
details here. https://docs.sonarqube.org/display/SONAR/Analysis+Parameters
Content type
Image
Digest
Size
125 MB
Last updated
about 9 years ago
docker pull tsgkadot/docker-sonar-scanner