BCDevOps / sonarqube

An OpenShift-focused Docker build of Sonarqube
GNU Lesser General Public License v3.0
2 stars 33 forks source link

Update the sonarqube-postgresql-template #37

Closed wmuldergov closed 1 year ago

wmuldergov commented 1 year ago

I was trying to deploy the yaml template into our tools namespace, but ran into a few issues:

  1. OpenShift wanted the API version to be updated to: template.openshift.io/v1
  2. The ImageStream section of this file is not required when you do the oc new-build command before doing the oc-new app command (as per the instructions)
  3. Sonarqube was using it's H2 DB instead of postgres, which was because the environment variables started with SONARQUBE instead of SONAR (they had to match what was in sonar.properties file)
  4. Needed to add the port to the Postgres URL
wmuldergov commented 1 year ago

Sorry for the delay, was on leave for a bit. Take a look and hopefully it's good now.