SonarQube Installation & Configuration Step by step

SonarQube Installation & Configuration Steps
==================================
Pre-requisites
=========
1.CPU 2core or more -->min 2core CPU is mandatory 
2.RAM 4GB or more ---->4GB is mandatory 
  (select t3.medium---->You Get 2CPU & 2GB RAM)
3.Harddisk --30GB ---->30GB is mandatory 
4.Java Software  ----->java11 or 17 is mandatory 
                                     go with java 17 
5.Operating System---->Amazon Linux

I. Create Security Group
==================
Step1: Login AWS 
Step2: Go EC2 Dashboard
step3: Select Security Group
Step4: Add port number 22 
           Add port number 9000 
           Security GroupName:sonarqube

II. Launch Instance & Login Instance
====================================
Step1: Go Ec2 Dashboard 
Step2: Create Server with Security GroupName:sonarqube
step3: Login Instance 

III. Download & Install Java17 Software
========================================
download java17 package:
--------------------------------
https://www.oracle.com/java/technologies/javase/jdk17-archive-downloads.html

go to /opt folder and download java
wget https://download.oracle.com/java/17/archive/jdk-17.0.12_linux-x64_bin.rpm
(Linux x64 RPM Package) -size 174.03 MB File)


   
Install java17 package:
---------------------------
Install java using rpm 
rpm -i jdk-17.0.12_linux-x64_bin.rpm
just wait few seconds..java will be installed 
check the java version
java --version

IV.Download & Configure SonarQube
============================
download SonarQube package:
--------------------------------------
open -->https://binaries.sonarsource.com
click on distribution 
click on sonarqube
select sonarqube-9.9.2.77730.zip folder
copy the link 
      
go to sonarqube server 
cd /opt
wget https://binaries.sonarsource.com/Distribution/sonarqube/sonarqube-9.9.2.77730.zip

extract or unzip folder using unzip command 
unzip sonarqube-9.9.2.77730.zip
Output: sonarqube-9.9.2.77730
     
this is very lengthy folder name 
just rename the folder using mv command
mv sonarqube-9.9.2.77730 sonar9
      
      now it will become : sonar9
      this is very short name 
      just use the folder for all future purpose

V.Create New User and Change the Ownership and run SonarQube 
================================================
step3: to run the SonarQube ..just crate a user
      useradd paparao
      password 123
step4: Change the Ownership and Group Name of the SonarQube folder
       our folder name is "sonar9"
       
       chown -R paparao:paparao sonar9
       Note: -R is a flag 
              R Stands for recursive
       because of this "R" --->parent folder and its child folders 
       owner name and group name will be changed 

step5:now switch to paparao user and run SonarQube
      root@IP/opt]su paparao
      paparao@IP/opt]
      paparao@IP/opt] cd sonar9
      paparao@IP/opt/sonar9] cd bin
      paparao@IP/opt/sonar9/bin] cd Linux-x64 
      paparao@IP/opt/sonar9sonar9/bin/Linux-x64]
      now star the SonarQube 
      just ---> sh sonar.sh start
   
      SonarQube Will be started 

VI. Open Browser and access SonarQube 
====================================
step6:Open Browser and Type Server IP Address
step7:Login Page
       user: admin
       password: admin
 
step8:Change the Password
      old password:admin
      new password:admin123
      confirm new password:admin123
      just press Login Button

Step9: SonarQube Home Page will be displayed

=============end===================

Comments

Popular posts from this blog

Top 10 Git Commands

Kubernetes cluster setup NOTES step by step using minikube