Giter Site home page Giter Site logo

sonarqube-on-openshift-4's Introduction

About this Repo

This repository contains two different sample yaml template to deploy Sonarqube to Openshift 4. This is not an ephemeral deployment since we are using Openshift PersistentVolume to mount data, logs and Sonarqube extensions, preventing data loss whenever Pod is being restarted.

One template (sonarqube-h2-db-template.yml) is using H2 in-memory Database recommended for a non-production environment, while the other (sonarqube-pgsql-db-template.yml) is using a postgresql database which is more suitable for production usage.

How To

Deploy template to Openshift, and creating a new application based on it. For Sonarqube with in-memory DB,

$ oc create -f sonarqube-h2-db-template.yml

$ oc new-app --template sonarqube-h2-db

For Sonarqube with Postgresql database,

$ oc create -f sonarqube-pgsql-db-template.yml

$ oc new-app --template sonarqube-pgsql-db

Run maven command to check your code against Sonarqube

$ mvn clean verify sonar:sonar -Dsonar.projectKey=my-project -Dsonar.host.url=http://openshift-url -Dsonar.login=sonar-token

Versions

  • Openshift 4.9.6
  • Sonarqube Community Edition Version 9.2.4 (build 50792)
  • Postgresql 12

Blog Post

https://edwin.baculsoft.com/2022/01/deploying-sonarqube-to-openshift-4-by-using-openshift-template/

Disclaimer

This data is provided "as is" without any guarantee whatsoever. 
Feel free to fork, tinker, add, remove, change, or do whatever you want to it. 

sonarqube-on-openshift-4's People

Contributors

edwin avatar fiblan avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.