https://github.com/zaquestion/docker-sonarqube-scanner
https://github.com/zaquestion/docker-sonarqube-scanner
Last synced: 9 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/zaquestion/docker-sonarqube-scanner
- Owner: zaquestion
- License: unlicense
- Created: 2016-10-22T08:47:40.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2020-09-30T23:01:34.000Z (over 5 years ago)
- Last Synced: 2025-03-25T11:49:24.573Z (10 months ago)
- Language: Dockerfile
- Homepage: https://hub.docker.com/r/zaquestion/sonarqube-scanner/
- Size: 17.6 KB
- Stars: 9
- Watchers: 2
- Forks: 9
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Deprecated
Originally when this project was made there wasn't an official image and there were issues with newtmitch's version (circa 2016), which have since be resolved. I will review/merge PR's made here for those using this project, however I recommend using the better maintained alternatives:
* https://hub.docker.com/r/sonarsource/sonar-scanner-cli
* https://hub.docker.com/r/newtmitch/sonar-scanner
# docker-sonarqube-scanner
runs sonar-scanner in a docker container so you don't have to pollute your system with Java.
To pull and run
```
docker run -ti -v $(pwd):/root/src zaquestion/sonarqube-scanner
```
# Example Project Config
You need a sonar-project.properties in the root of your project file heres
a template for python
```
# Required metadata
sonar.projectKey=org.sonarqube:python-sonar-scanner
sonar.projectName=Python :: PYTHON! : SonarQube Scanner
sonar.projectVersion=1.0
# Comma-separated paths to directories with sources (required)
sonar.sources=
# Language
sonar.language=py
# Encoding of the source files
sonar.sourceEncoding=UTF-8
sonar.host.url=http://172.17.0.5:9000
```
# Using [docker-sonarqube-python](https://github.com/zaquestion/docker-sonarqube-python) server
To get the IP of a sonarqube server running in docker
```
docker network inspect bridge
```