To use this program, you must have docker and docker-compose installed on your computer. The installation process can be found on the official Docker website
First of all, you have to clone this project in your directory with the following command:
git clone https://github.com/galexandre/docker-jenkins-sonarqube.gitThen, go to the jenkins directory. Execute the following command.
chmod 777 jenkins.shThe command will give the right to the container to execute the file jenkins.sh.
Now, you can start the program via the following command:
docker-compose upJenkins and SonarQube are available on the following ports:
- Jenkins: 8080
- SonarQube: 9000
At the first start, Jenkins will ask you for a password. This password is displayed in the log. However, you can have access to this password via the container.
To create a connection to the container, you have just to do this command:
docker exec -i -t jenkins bashUse the command cat on the specific file and copy the password.
//TODO
This repository is under the MIT license. You can find it here.