We will be using docker to spin up a local instance of sonarqube and scan the code.
- Execute below command to spin up a local instance.
docker run -d --name sonarqube -e SONAR_ES_BOOTSTRAP_CHECKS_DISABLE=true -p 9000:9000 sonarqube:latest
-
Access the app at http://localhost:9000/projects and use the default credentials of
admin/admin
. You will be prompted to reset the password. -
Click here to Install ngrok, you will need to sign up for free ngrok account. This is required for integrating Sonarqube with GitHub.
https://docs.sonarqube.org/latest/setup/get-started-2-minutes/