Abstract
You can evaluate SonarQube using a traditional installation with the zip file or you can spin up a Docker container using one of the Docker images.
Steps to install Docker : Set Up Docker
Steps to setup Local Instance of SonarQube using Docker Image:
Start your server by running below command.
docker run -d --name sonarqube -e SONAR_ES_BOOTSTRAP_CHECKS_DISABLE=true -p 9000:9000 sonarqube:latest
Once your instance is up go to http://localhost:9000/ using below credentials
Login: admin
Password: admin
Under How do you want to create your Project ? Click on Manually.
Under Create a project, enter Project display name and Project key and then click on Set up.
Note: Project display name and Project key can be any name of your choice.
Under How do you want to analyze your Repository ? Click on Locally.
Under Provide a token, select Generate a token. Give your token a name, click the Generate button.
Your generated token will be displayed on the screen, click on Continue.
Select your project's main language under Run Analysis on your Project.
After selecting the language, the command will be displayed on the screen. Copy the command and run under your project.
After successfully analyzing your code, go to http://localhost:9000/ and you'll see your first analysis on SonarQube
Hope this helps!!
Read Full Blog
Q&A
Please use this thread to ask the related questions.
Kautuk Sahni