OpenShift SonarQube
Jump to navigation
Jump to search
External
Internal
Overview
SonarQube is an open source code analysis tool. It can be invoked via Maven or Jenkis plug-ins.
Installation
Install Postgres and create a "sonar" database:
Apply the template
oc process -f ./sonar.yaml \ --param APPLICATION_NAME=sonar \ --param SONARQUBE_JDBC_USERNAME=sonar \ --param SONARQUBE_JDBC_PASSWORD=<replace-with-actual-password> \ --param POSTGRESQL_DATABASE=sonar \ --param POSTGRESQL_SERVICE=sonar-postgresql \ --param STORAGE_SIZE_GB=2 \ | oc create -f -
oc rollout pause dc sonar
oc rollout resume dc sonar