UNCLASSIFIED

Commit 8457072e authored by Karpagam Balan's avatar Karpagam Balan
Browse files

Add documentation

parent 5e3eaacb
......@@ -2,9 +2,8 @@
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
## [Unreleased]
## [0.0.1] - 2020-06-3
Upgraded to upstream version 8.3-community [Version 8.3.1 (build 34397)]
Initial release
upstream version 8.3-community [Version 8.3.1 (build 34397)]
# Big Bang Sonarqube
# Sonarqube 8.3 Community version [Version 8.3.1 (build 34397)]
Upstream version - 8.3 community [Version 8.3.1 (build 34397)]
This repo contains manifests to deploy Sonarqube static code analysis tool into a Kubernetes cluster.
[Sonarqube](https://docs.sonarqube.org/latest/) is a tool for static code analysis
Additional docs for using Sonarqube and its plugins can be found at https://docs.sonarqube.org/latest/
## Pre-requisites
## Usage
* kubectl
### Pre-requisites
## Getting Started
* Kubernetes cluster deployed
* kubectl configuration installed
Install kubectl
```bash
$ brew install kubectl
```
Install kustomize
```bash
$ brew install kustomize
```
### Deployment
Clone repository
```bash
$ git clone https://repo1.dsop.io/platform-one/apps/sonarqube.git
$ cd sonarqube
```
** Please note that appropriate secrets (listed below) should be defined before the sonarqube pod is able to connect to the postgres database and is able to function properly.
Sonarqube needs three environment variables to access the postgres database.
......@@ -22,15 +41,32 @@ SONARQUBE_JDBC_PASSWORD - password for the above user
These need to be added in as Kubernetes secrets and mounted into the sonarqube pod https://kubernetes.io/docs/concepts/configuration/secret/.
To run Sonarqube, clone this repository, add the secrets, volumes, volumeMounts and env to set values for the above variables.
After the above secrets are incorporated into the sonarqube/ manifests, to deploy Sonarqube run:
To run Sonarqube, add the secrets, volumes, volumeMounts and env to set values for the above variables.
After the above secrets are incorporated into the sonarqube/ manifests, to deploy Sonarqube apply the kustomized manifest:
```bash
$ kubectl apply -k sonarqube/
```
### IMPORTANT Default Admin Credentials
When installing SonarQube, a default user with Administer System permission is created automatically:
Login: admin
Password: admin
You can change the administrator password from the SonarQube dashboard by following these steps:
1)Log in to the SonarQube dashboard.
2)Under the “User Name” dropdown menu in the upper right corner, click on “My Account”.
3)Select the “Security” tab.
4)Enter your old password and enter your new password twice to confirm the change.
5)Click the “Change password” button.
## Contributing
To contribute to Big Bang Sonarqube, see the [Contributing Guide](CONTRIBUTING.md).
## References
Docker image https://dcar.dsop.io/repomap/sonarsource/sonarqube/sonarqube8-community SHA tag - sha256:7356de08b61c240302aa91040a7abea1ebea190afb2d14f35191e272ddbc712a
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment