A Docker Image for SonarQube Scanner
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
assets Fix SonarScanner URL Nov 7, 2018
.gitignore Fix typos, update README.md May 25, 2018
.travis.yml Fix typos, update README.md May 25, 2018
Dockerfile First Commit May 25, 2018
README.md Update README.md Dec 26, 2018
_config.yml Added documentation to opensource ByJG.com Jan 4, 2019

README.md

Sonar Scanner

This image runs the sonar scanner

Tags

  • 3.2.0, 3.2.0.1227, latest
  • 3.1.0, 3.1.0.1141
  • 3.0.3, 3.0.3.778
  • 3.0.2, 3.0.2.768
  • 3.0.1, 3.0.1.733
  • 3.0.0, 3.0.0.702
  • 2.9.0, 2.9.0.670

Running

With Default parameters:

docker run -it --rm \
    -v $PWD:/opt/src \
    -v $HOME/.sonar:/root/.sonar \
    -e SONAR_SCANNER_OPTS="-Xmx512m" \
    byjg/sonar-scanner    

Passing parameters

docker run -it --rm \
    -v $PWD:/opt/src \
    -v $HOME/.sonar:/root/.sonar \
    -e SONAR_SCANNER_OPTS="-Xmx512m" \
    byjg/sonar-scanner \
    -Dsonar.projectKey=my-project-key \
    -Dsonar.sources=. \
    -Dsonar.host.url=http://localhost:9000