####OpenShift notes If using a persistent volume with postgres, ownership of that volume should be is set accordingly & necessary lines uncommented from template... for example:
$ chown -R 1000100002:0 /var/export/postgres_pv
Deploy from template:
$ oc process -f sonarqube-template.yaml | oc create -f -
# IF deployment NOT triggered automatically
$ oc deploy postgresql ; oc start-build sonarqube
####docker compose notes
$ docker build --pull -t sonarqube:6.1-centos7 .
$ sudo mkdir -p /var/lib/pgsql/data
$ sudo chown -R 26:26 /var/lib/pgsql && sudo setfacl -Rm u:26:rwx /var/lib/pgsql
$ docker-compose up
We do provide Ansible playbooks to deploy and undeploy SonarQube to OpenShift Container Platfrom. To use these playbooks, set the following environment variables:
$ export OCP_USER=user
$ export OCP_PASSWORD=password
$ export OCP_URL=https://master.acme.example.com
Now you can use the two playbooks provided in playbooks/
.