For more information about this image and its history, please see the
orangesignal/docker-sonarqube GitHub repo.
What is SonarQube?
SonarQube software (previously called Sonar) is an open source quality management platform, dedicated to continuously analyze and measure technical quality, from project portfolio to method.
Now you can verify that the installation is ok with the following commands:
docker version docker-compose --version
How to use
docker run -p 9000:9000 orangesignal/sonar
Run the SonarQube with Docker Compose. Docker Compose uses a
docker-compose.yml file that describes the environment.
git clone https://github.com/orangesignal/docker-sonarqube.git cd docker-sonarqube docker-compose up
NOTE: Please allow a minute or two for the SonarQube application to start.
On another console run:
Point your browser to the given URL and login using the default username and password:
- username: admin
- password: admin
You should now have the SonarQube application up and ready for testing. If you want to use this image in production the please read on.
The SonarQube image uses several environment variables which are easy to miss. While none of the variables are required, they may significantly aid you in using the image.
The embedded database is recommended for demos and tests only. It must be replaced by a database like PostgreSQL, MySQL or Oracle in production environment. Read the installation guide to get more details.
Default value is:
This optional environment variable is used in conjunction with
SONAR_JDBC_PASSWORD to set a user and its password.
If it is not specified, then the default user of
sonar will be used.
This environment variable is recommend for you to use the SonarQube image. The default user is defined by the
SONAR_JDBC_USERNAME environment variable.