mount source directory for /workspace
docker run --volume <source_directory>:/workspace satotka/sonar-scanner <sonar-options>
Example
$ docker run --rm \
--volume `pwd`/sample:/workspace \
satotka/sonar-scanner \
-Dsonar.sources=. \
-Dsonar.host.url=https://sonarqube:9000 \
-Dsonar.projectKey=sample
make for testing locally.
$ make build: build image locally..$ make run-sonar: start sonarqube server$ make scan: scan sample.Content type
Image
Digest
Size
95.8 MB
Last updated
over 6 years ago
docker pull satotka/sonar-scanner