This Docker container implements a Sonarqube Server.
- Raspbian base image.
Installation from Docker registry hub.
You can download the image with the following command:
## Build with Lastest Version.
docker build --build-arg SONAR_VERSION=8.9.0.43852 -t ghazanfar9131/rpi-sonarqube .
The image exposes port 9000
. Also, exports two volumes: /sonarqube-5.6.6/extensions
and /sonarqube-5.6.6/logs/
, used to store all the plugins and the other is used to store the sonarqube logs.
Use cases
- This image uses environment variables to allow the configuration of some parameteres at run time:
- Variable name:
DB_USER
- Default value: sonar
- Accepted values: a valid user created in the database.
- Description: database user.
- Variable name:
DB_PASS
- Default value: xaexohquaetiesoo
- Accepted values: a valid password for the user created in the database.
- Description: database password.
- Variable name:
DB_NAME
- Default value: sonar
- Accepted values: database name where the container must connect.
- Description: database name.
- Variable name:
DB_TYPE
- Default value: MYSQL
- Accepted values: database type. MYSQL, POSTGRES, MSSQL
- Description: database types: mysql, postgres or microsoft sql server
- Variable name:
LANGUAGE_VERSION
- Default value: 1.1
- Description: version of portuguese language plugin.
- If you'd like to run the container, you must download the plugins to a folder and pass the folder path to the container as below:
docker run -d --name sonarqube \
-e DB_USER=sonar \
-e DB_PASS=xaexohquaetiesoo \
-e DB_NAME=sonar --link postgresql:db \
-e DB_TYPE=POSTGRES \
-p 9408:9000 \
-v /media/usbraid/docker/sonar-scanner/plugins:/sonarqube-5.6.6/extensions/plugins \
paperinik/rpi-sonarqube:latest