Skip to content

ismaelqueiroz/docker-sonar-scanner

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Sonar Scanner

GitHub issues GitHub stars

The unofficial image of the Sonar Scanner, made with love by the community.

Table of Contents

 - What is Sonar scanner?

Supported tags and respective Dockerfile links

What is Sonar Scanner?

The SonarQube Scanner is recommended as the default launcher to analyze a project with SonarQube.

See: http://ismaelqueiroz.github.io

How to use this image

Create a Dockerfile in your Sonar Scanner app project

specify the sonar-scanner base image with your desired version sonar-scanner:

FROM ismaelqueiroz/sonar-scanner

You can then run the Docker image:

$ docker run --rm ismaelqueiroz/sonar-scanner sonar-scanner -v

Just replace YOUR-SONAR-SERVER with the IP-Address of your Sonar-Server of your choice.

Environment variables

When you start the sonar-scanner image, you can adjust the configuration of the instance by passing one or more environment variables either on the docker run command line. If you want to add a new environment variable:

  • Execution add a -e option with each variable and value:
 $ docker run --rm ismaelqueiroz/sonar-scanner \
     -e SONAR_SCANNER_VERSION=3.3.0.1492 \
     /bin/sh -c "update; sonar-scanner -v"

Available variables:

  • SONAR_SCANNER_HOME: Sonar Scanner home. Default: /sonarscanner
  • SONAR_SCANNER_VERSION: Sonar Scanner version. Default: 3.3.0.1492

License

The Dockerfiles and associated scripts are licensed under the MIT License.

About

Docker container to run sonar-scanner with jenkins-ci

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published