Skip to content

NoEnv/docker-sonar-scanner

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

30 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Docker Pulls Quay.io Enabled build

docker-sonar-scanner

Description

SonarQube Scanner as Docker Image.

Run

most simple way of running the container

docker run --rm -v /<projectDir>:/data noenv/sonar-scanner sonar-scanner

more advanced way (including custom properties and java tls trust store override)

docker run --rm -v /<configDir>/sonar-scanner.properties:/sonar-scanner/conf/sonar-scanner.properties \
  -v /<projectDir>:/data noenv/sonar-scanner sonar-scanner -Dsonar.sources=<srcDir> \
  -Dsonar.projectKey=<projectKey> -Dsonar.exclusions=<filesToExclude>

Source

https://github.com/noenv/docker-sonar-scanner