Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add sonarqube to marketplace #983

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions sonarqube/install.sh
Original file line number Diff line number Diff line change
@@ -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
Binary file added sonarqube/logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
7 changes: 7 additions & 0 deletions sonarqube/manifest.yaml
Original file line number Diff line number Diff line change
@@ -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

34 changes: 34 additions & 0 deletions sonarqube/post_install.md
Original file line number Diff line number Diff line change
@@ -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/)

5 changes: 5 additions & 0 deletions sonarqube/uninstall.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#!/bin/bash

helm uninstall -n sonarqube sonarqube

kubectl delete namespace sonarqube