Public | Automated Build

Last pushed: 3 years ago
Short Description
Dockerized SonarQube instance
Full Description

SonarQube Dockerfile

This repository contains Dockerfile of sonarqube for Docker's automated build published to the public Docker Hub Registry.

Base Docker Image


  1. Install Docker.

  2. Download automated build from public Docker Hub Registry: docker pull gamars/sonarqube

    (alternatively, you can build an image from Dockerfile: docker build -t="gamars/sonarqube"


By default the image will use an embeded H2 DB and expose its port for local analysis.

docker run -d -p 9000:9000 -p 9092:9092 gamars/sonarqube

Use existing JDBC



After few seconds, sonarqube is available at http://<host>:9000. To run an analysis on local code execute the following mvn command:

mvn clean install sonar:sonar<host>:9000 -Dsonar.jdbc.url=jdbc:h2:tcp://<host>:9092/sonar

Docker Pull Command
Source Repository