This folder is meant to make it easy to quickly analyze Jervis code (and any local changes) with SonarQube. This is meant to be run on my local development machine. When Sonar is running I visit http://localhost:9000/ in my web browser.
Prerequisites:
- Docker
- docker-compose
Start SonarQube by running the following command relative to this directory.
docker-compose up -d
Note: If you would like to log in as the administrator, then login with user:
admin
, password:admin
. This is not necessary to submit local development results or to read results.
At the root of this repository, simply run
./gradlew clean sonar
Visit http://localhost:9000/ and see the results appear.
You can stop SonarQube with
docker-compose down
Start SonarQube with
docker-compose up -d
To completely remove SonarQube from your system run
docker-compose down -v --rmi all
It will do the following to SonarQube
- Stop the service, if it is running.
- Delete all analysis data.
- Remove SonarQube docker image.