Unofficial image for SonarQube based on Red Hat Universal Base Image
This image was build using the Red Hat Universal Base Image (UBI) 8, which provides a stable foundation to workloads running on mission-critical environments, specially on Red Hat OpenShift Container Platform.
If you running standalone containers, you can use podman
or docker
with:
podman run -d -p 9000:9000 quay.io/davivcgarcia/ubi-sonarqube
If you running containers on OpenShift (or Kubernetes using Ingress instead of Router API), and have dynamic provisioning enabled, you can use kubectl
or oc
to deploy it redirectly from this repo:
oc new-project sonarqube
oc apply -f https://github.com/davivcgarcia/ubi-sonarqube/releases/latest/download/openshift-resources.yaml
If you don't have dynamic provisioning for PersistentVolumes enabled and a default storage class, please checkout the resource template and make the required modifications before the deployment.
If you are running it on OpenShift/Kubernetes, you will notice that the resource template is configured to use container volumes at /opt/sonarqube/conf
, /opt/sonarqube/data
, /opt/sonarqube/logs
and /opt/sonarqube/extensions
, mapped to PersistentVolumes
.
By the default it uses H2
as database, but the prefered way is to setup a PostgreSQL database and use it instead. To configure it, use the environment variables SONARQUBE_JDBC_USERNAME
, SONARQUBE_JDBC_PASSWORD
and SONARQUBE_JDBC_URL
.
This is a community project, not backed nor supported by Red Hat.