Nair18 / docker-sonarqube-scanner

Home Page:https://hub.docker.com/r/zaquestion/sonarqube-scanner/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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=<SRC>

# Language
sonar.language=py

# Encoding of the source files
sonar.sourceEncoding=UTF-8

sonar.host.url=http://172.17.0.5:9000

To get the IP of a sonarqube server running in docker

docker network inspect bridge

About

https://hub.docker.com/r/zaquestion/sonarqube-scanner/

License:The Unlicense


Languages

Language:Dockerfile 69.2%Language:Shell 30.8%