Skip to content

orangesignal/docker-sonarqube

Repository files navigation

orangesignal/sonar

SonarQube small docker images

Supported tags

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.

wikipedia.org/wiki/SonarQube

logo

Prerequisites

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:

make port

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.

Environment Variables

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.

SONAR_JDBC_URL

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: jdbc:h2:tcp://localhost:9092/sonar

SONAR_JDBC_USERNAME

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.

SONAR_JDBC_PASSWORD

This environment variable is recommend for you to use the SonarQube image. The default user is defined by the SONAR_JDBC_USERNAME environment variable.

LICENSE

Apache 2 License

About

Docker Image packaging for SonarQube

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages