diff --git a/sonarqube/install.sh b/sonarqube/install.sh new file mode 100644 index 00000000..3d511d86 --- /dev/null +++ b/sonarqube/install.sh @@ -0,0 +1,9 @@ +#!/bin/bash + +helm repo add sonarqube https://SonarSource.github.io/helm-chart-sonarqube + +helm repo update + +kubectl create namespace sonarqube + +helm upgrade --install -n sonarqube sonarqube sonarqube/sonarqube --set service.type=LoadBalancer \ No newline at end of file diff --git a/sonarqube/logo.png b/sonarqube/logo.png new file mode 100644 index 00000000..1ba1e0ab Binary files /dev/null and b/sonarqube/logo.png differ diff --git a/sonarqube/manifest.yaml b/sonarqube/manifest.yaml new file mode 100644 index 00000000..1615e48f --- /dev/null +++ b/sonarqube/manifest.yaml @@ -0,0 +1,7 @@ +name: sonarqube +version: 10.7 +maintainer: "@VinujaKhatode" +description: SonarQube is an open-source, on-premise code analysis tool that enables developers to detect bugs, code smells, and security vulnerabilities across 30+ programming languages. +url: https://www.sonarsource.com/open-source-editions/sonarqube-community-edition/ +category: management + diff --git a/sonarqube/post_install.md b/sonarqube/post_install.md new file mode 100644 index 00000000..698b7b26 --- /dev/null +++ b/sonarqube/post_install.md @@ -0,0 +1,34 @@ +# Post Installation Instructions for SonarQube + +SonarQube is an open-source platform developed by SonarSource for continuous inspection of code quality. It performs automatic reviews with static analysis of code to detect bugs, code smells, and security vulnerabilities on 30+ programming languages. It provides a quality gate which can be integrated in to the CI pipelines. + +## 1. Get the Application URL + +To access the SonarQube application, follow these steps: + +### a. Retrieve the Load Balancer IP + +```sh +export SERVICE_IP=$(kubectl get svc --namespace sonarqube sonarqube-sonarqube -o jsonpath='{.status.loadBalancer.ingress[0].ip}') +``` + +### b. Access the Application + +Visit to the localhost from your browser: + +` echo http://$SERVICE_IP:9000 ` + +Example - `http://74.220.19.252:9000` + +## 2. Default Credentials +The default credentials for SonarQube are: + +Username: `admin` \ +Password: `admin` + +SonarQube prompts to change the default password after the first login. + +## 3. User Guide & Official Documentation + +For more information, visit the [SonarQube Documentation.](https://docs.sonarsource.com/sonarqube/latest/) + diff --git a/sonarqube/uninstall.sh b/sonarqube/uninstall.sh new file mode 100644 index 00000000..02aff91e --- /dev/null +++ b/sonarqube/uninstall.sh @@ -0,0 +1,5 @@ +#!/bin/bash + +helm uninstall -n sonarqube sonarqube + +kubectl delete namespace sonarqube \ No newline at end of file