项目作者: Mindfield-dk

项目描述 :
Dockerized SonarQube Scanner
高级语言: Dockerfile
项目地址: git://github.com/Mindfield-dk/docker-sonarqube-scanner.git
创建时间: 2017-10-25T11:59:17Z
项目社区:https://github.com/Mindfield-dk/docker-sonarqube-scanner

开源协议:Other

下载


Docker SonarQube Scanner

FOSSA Status

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

Official image

There is now an official docker image provided by SonarQube. You can get it here.

Prerequisite

A sonar-project.properties (or it’s equivalent in dynamic configuration) is required in the root of you project with as a minimum the following values:

  1. sonar.projectKey=uniqueKey
  2. sonar.projectName=Project Name
  3. sonar.projectVersion=0.0.1
  4. sonar.sources=.
  5. sonar.projectDescription=Project Description

Run

By default https://sonarcloud.io is assumed to be the server to connect to.

  1. docker run --rm --user $(id -u):$(id -g) -w /data -v $(pwd):/data localgod/docker-sonarqube-scanner:1.1.1 -Dsonar.login=08b0d2062d8e20008c92d29f314ab5bea728448e <more_parameters_if_required>

You can override this by providing the server name as an environment variable:

  1. docker run --rm --user $(id -u):$(id -g) -e "SONAR_HOST=http://localhost:9000" -w /data -v $(pwd):/data localgod/docker-sonarqube-scanner:1.1.1 <parameters_if_required>

License

FOSSA Status