Name Last Update
sample Loading commit data...
Dockerfile Loading commit data...
README.md Loading commit data...
entrypoint.sh Loading commit data...
sonar-scanner.properties Loading commit data...

README.md

#docker-sonar-runner

How to build

docker build -t docker-internal.alfresco.com/docker-sonar-scanner .

Usage

Copy the project settings file to your project

cp sample/sonar.project.settings.properties <your_source_folder>

Edit the file with your configuration:

sonar.projectKey=org.alfresco:console-frontend

sonar.projectName=Console Frontend
sonar.projectVersion=0.0.1
# /tmp is mandatory
sonar.sources=/tmp/dist

# Optional
# sonar.exclusions=/tmp/dist/vendor/**

Start the scan

docker run -v $PWD:/tmp docker-internal.alfresco.com/docker-sonar-scanner:2.6.1