This is a quick set up to install SonarQube and its associated technology. The main bulk of the installation are based on Docker containers.
- SonarQube Community Edition
- Postgresql 12
- Nginx
Assuming your systems are not connected the internet or required interaction with internal systems that are secured by internal certificate authority, you may need to build the respective docker images locally first on an internet machine.
Please ensure these tools are installed in your system.
- docker
- docker-compose
Copy both the tar files into your machine or vm.
Clone or copy this repository into the machine
cd docker-compose-sonarqube
docker-compose up -d
SonarQube should be up and running. Try to access it by going to http://localhost:9000
Edit the env variables based on your own set-up. Note : This is not a secure or recommended way of managing secrets in containers, please do check out solutions like Hashicorp's Vault if you intend to run this in enterprise level.
environment:
- POSTGRES_USER=xxxx
- POSTGRES_PASSWORD=xxxx
- POSTGRES_DB=xxx
You can also edit the configuration at conf/sonar.properties as it is mount directly to the container. The property file has been sanitized without actual secrets , ips or passwords.
The example configurations in sonar.properties to connect with AD through ldaps and outgoing proxy for updates through HTTP authentication. Please add in the details based on your own set-up
To build in a VM environment, you need to set the permissions of the opt/sonarqube folder to 777.