Sign inSign up

jtama/sonar-scanner

By jtama

•Updated almost 8 years ago

A container to run sonar analysis

Image
1

67

jtama/sonar-scanner repository overview

https://gitlab.com/onepoint/sonar-scanner⁠

⁠Sonar scanner

⁠Latest tag

The latest tag to use is 3.2.0-jdk11

⁠Description

This image is based on openjdk:11.0.1-jre⁠.

It contains a node V11 and sonar-scanner V3.2.0

⁠Sonar scanner 3.2.0

⁠Run the container
⁠The data volume

The default container command expects the project files to be under folder /data. This folder MUST contain a sonar-project.properties file. That's all.

Please refer to the official documentation⁠.

. Mount source files under /data folder

-v $(pwd):/data
⁠The running environment variables

The container expect the infrastructural variables to be passed at runtime instead of being saved in the sonar.properties file. You must thus pass the following :

  • sonar.host.url : Where to reach the sonar server instance
  • sonar.login : The user credential to connect to sonar
⁠Default run command line
docker run --rm -v $(pwd):/data -e "sonar.host.url=http://172.22.50.31:9000/" sonar-scanner:2.6.1.0

Tag summary

Content type

Image

Digest

Size

273.8 MB

Last updated

almost 8 years ago

docker pull jtama/sonar-scanner:3.2.0-jdk11