Public | Automated Build

Last pushed: 3 months ago
Short Description
Sonarqube docker image
Full Description

Container for sonarqube

Based on openjdk:8-alpine and includes several plugins related to java and javascript development
as well as git and github connectors

Build it

docker build -t airvantage/av-sonarqube .

Get it

docker pull airvantage/av-sonarqube

Run it

Provided a mysql container exists that contains the sonar database:

docker run -d -p 9000:9000 --name=sonarqube --link=mysql:mysql airvantage/av-sonarqube

Or if you have a sonar.properties configuration file located in /home/workspace/aws/av-sonarqube/release/docker/extconf/, then
you can launch the container as follows:

docker run -d -p 9000:9000 \
    -v /home/workspace/aws/av-sonarqube/release/docker/extconf/:/opt/sonarqube/extconf \
    --name=sonarqube \
    -e SONARQUBE_WEB_JVM_OPTS="-Xmx2048m" \
    -e SONARQUBE_WEB_SESSION_TIME_OUT=60 \
    airvantage/av-sonarqube

In the last example you can also see the usage of two new options:

SONARQUBE_WEB_JVM_OPTS for setting additional JVM options such as the max memory
SONARQUBE_WEB_SESSION_TIME_OUT for setting the session time out of the web application in minutes (default is 20 min.)
Docker Pull Command
Owner
airvantage
Source Repository

Comments (0)