Skip to content

Latest commit

 

History

History
21 lines (16 loc) · 874 Bytes

README.md

File metadata and controls

21 lines (16 loc) · 874 Bytes

Sonarqube image

This is based on the official SonarQube image but it's compatible with Openshift permission policy.

Deployment on Openshift

For example, if you want to deploy the version 6.7-alpine on Openshift in a cicd project, you can run:

oc project cicd
version=6.7-alpine
# Build the new image based on the imported image
oc new-build https://github.com/in-the-keyhole/openshift-sonarqube-s2i.git \
    --strategy=docker \
    --to=sonarqube-ocp:6.7-alpine \
    --name=sonarqube-ocp
# Create the SonarQube deployment with PostgreSQL
oc new-app -f https://raw.githubusercontent.com/in-the-keyhole/openshift-sonarqube-s2i/master/openshift/sonarqube-postgresql-template.yml -p SONARQUBE_VERSION=${version} -p POSTGRESQL_PASSWORD=sonar

Reference: https://github.com/arnaud-deprez/sonarqube-docker.git