How to Setup Sonar Cube + Sonar Scanner with docker compose (Simple)
1 min readMay 28, 2020
create file sonarqube-docker-compose.yml
after that run docker-compose
sudo docker-compose -f sonarqube-docker-compose.yml up
Download Sonar scanner and extract
set variable environment in your bashrc
vim ~/.bashrcexport PATH=$PATH:/your_folder_sonar_scanner/sonar-scanner/bin
Create a file sonar-project.properties in folder what u want to scan
to scan your script folder with this
sonar-scanner
Welldone, u already finished the step :)