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.
On this repo you'll find 2 images that provide the first 2 components:
* Database (sonar-mysql) * WebServer (sonar-server).
This repo is a fork of the tpires/docker-sonar repo. I just needed to modified it to add a proxy due to my network.
First you need to run the database image, but you need to give it a name so it can be later linked with the sonar-server:
docker run -i -t -d -p 3306:3306 --name smysql h4evr/sonar-mysql
Default user and password
Default user and password for mysql is sonar:123qwe.
Now you need to run the server and link it with the database. That link will be named "db".
docker run -i -t -d --name sonar -p 9000:9000 --link smysql:db h4evr/sonar-server
You can now access to sonar-server by opening your browser to http://localhost:9000 .