Prerequisite: JAVA
Install JAVA
Install SonarQube in Linux
# Run commands as Normal User
$ cd
$ wget https://binaries.sonarsource.com/Distribution/sonarqube/sonarqube-10.1.0.73491.zip
$ unzip sonarqube-10.1.0.73491.zip
$ mv sonarqube-10.1.0.73491 sonarqube
$ cd sonarqube
$ cd bin
$ cd linux-x86-64
$ ./sonar.sh start
$ ./sonar.sh status
How to install SonarQube using docker container?
To install SonarQube using a Docker container, follow these steps:
Ensure that Docker is installed: Make sure you have Docker installed on your machine. You can download Docker from the official website and follow the installation instructions for your specific operating system.
Pull the SonarQube Docker image: Open your terminal or command prompt and execute the following command to pull the SonarQube Docker image from Docker Hub:
$ docker pull sonarqube
Create a Docker container: Once the image is downloaded, run the following command to create a new Docker container for SonarQube:
$ docker run -d --name sonarqube -p 9000:9000 sonarqube
This command will create a new Docker container named "sonarqube" and expose port 9000, which is the default port for accessing SonarQube.
Access SonarQube: After the container starts, you can access SonarQube by opening a web browser and navigating to http://localhost:9000. This will take you to the SonarQube web interface.
Note: If you are running Docker on a remote server or using a different port mapping, replace localhost:9000 with the appropriate IP address and port.
Log in to SonarQube: On the SonarQube login page, use the default credentials:
Username: admin
Password: admin
It is recommended to change the default password after logging in for the first time.
How to access SonarQube?
- http://52.207.239.204:9000/
Log in to SonarQube: On the SonarQube login page, use the default credentials:
Username: admin
Password: admin
Latest posts by Rajesh Kumar (see all)
- Installing Jupyter: Get up and running on your computer - November 2, 2024
- An Introduction of SymOps by SymOps.com - October 30, 2024
- Introduction to System Operations (SymOps) - October 30, 2024
yeterday, i develop the software but i found the no of bugs in my source code so i was searching tool to analyze and monitor the quality of my source codes after visting your blog i found sonarqube to test my source code and i install it my system ,thanks lot rajesh to sharing this blog