docker-sonarqube
SonarQube is an open platform to manage code quality.
The SonarQube platform is made of 3 components:
- One Database to store
- One Web Server for users to browse quality snapshots and configure the SonarQube instance
- One or more Analyzers to analyze projects.
Description
This repo contains a docker image with sonarqube that uses PostgreSQL as a database server.
Setup
- First you need to run the PostgreSQL database image, like here:
docker run --name db-postgres -e POSTGRES_PASSWORD=postgres -e POSTGRES_USER=postgres -d postgres:9
- Now you need to run the server and link it with the database. That link will be named "postgres".
docker run --name sonar -p 9000:9000 --link db-postgres:postgres -d varlog/sonarqube
You can now access to sonar-server by opening your browser to http://localhost:9000.