Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/heiso/sonarqube-scanner
Scan a project codebase with sonar-scanner and send results to a Sonarqube server
https://github.com/heiso/sonarqube-scanner
docker docker-image sonar-scanner sonarqube
Last synced: 14 days ago
JSON representation
Scan a project codebase with sonar-scanner and send results to a Sonarqube server
- Host: GitHub
- URL: https://github.com/heiso/sonarqube-scanner
- Owner: heiso
- Created: 2018-10-16T08:29:37.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2018-10-16T15:19:36.000Z (about 6 years ago)
- Last Synced: 2024-10-26T01:36:19.615Z (2 months ago)
- Topics: docker, docker-image, sonar-scanner, sonarqube
- Language: Dockerfile
- Homepage:
- Size: 2.93 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
[Docker Hub - sonarqube-scanner](https://hub.docker.com/r/heiso/sonarqube-scanner)
**This docker image do not include a sonarqube server.**
Its only purpose is to scan a project codebase and send results to a living Sonarqube server.
The default sonar-scanner version used is 3.2.0.1227# Usage
This image will expose sonar-scanner from https://docs.sonarqube.org/display/SCAN/Analyzing+with+SonarQube+Scanner so you can use any command sonar-scanner could use.Simple example
```bash
docker run \
-v $(pwd):/mnt/app \
heiso/sonarqube-scanner \
-Dsonar.host.url=https://my.sonarqube.server \
-Dsonar.projectKey=myProject \
-Dsonar.sources=./src \
-Dsonar.login=
```Example with a sonar-project.properties
```bash
docker run \
-v $(pwd):/mnt/app \
heiso/sonarqube-scanner \
-Dproject.settings=/mnt/app/sonar-project.properties
```It's also possible to use another version of sonar-scanner by setting the VERSION environment variable
```bash
docker run \
-v $(pwd):/mnt/app \
-e VERSION= \
heiso/sonarqube-scanner \
-Dproject.settings=/mnt/app/sonar-project.properties
```