Public | Automated Build

Last pushed: 2 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

Installation

  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" github.com/gamars/sonarqube)

Usage

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

TBD

Analysis

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 -Dsonar.host.url=http://<host>:9000 -Dsonar.jdbc.url=jdbc:h2:tcp://<host>:9092/sonar

Docker Pull Command
Owner
gamars
Source Repository

Comments (1)
rufer7
2 years ago

Cool stuff! I'll try it out soon!!