Giter Club home page Giter Club logo

docker-sonarqube-mysql's Introduction

โš ๏ธ Unfortunately Sonarqube has discontinued support for MySQL:

"Support for MySQL has been dropped in Data Center Edition and deprecated for all other editions." (https://groups.google.com/forum/#!topic/sonarqube/Xv4QmRk4Rik)

If you don't have to rely on it, I would recommend to use the integration with Postgre SQL. I'm sure there will be support for a long time to come. On the following website you can find more information about using PostgreSQL with Sonarqube on Docker https://github.com/SonarSource/docker-sonarqube/blob/master/recipes.md

Docker Compose file for Sonarqube with MySQL

Installation

  1. Install docker and docker-compose
  2. Clone the repository
  3. Open terminal and cd into ./sonarqube-mysql
  4. Run docker-compose up -d
  5. Open browser and browse to http://youripaddress:9000/

Complete installation instructions for Ubuntu

Docker

I.e. with convenience script:

curl -fsSL get.docker.com -o get-docker.sh
sudo sh get-docker.sh

https://docs.docker.com/engine/installation/linux/docker-ce/ubuntu/

Sonarqube with MySQL

// Clone repository
sudo apt-get install git
git clone https://github.com/marvinpuethe/docker-sonarqube-mysql.git

// Start docker-compose
cd docker-sonarqube-mysql/sonarqube-mysql
docker-compose up -d

Environment Parameters

Name Description
MYSQL_ROOT_PASSWORD Password for root dbuser in mysql
MYSQL_DATABASE Database name in mysql used for storing sonarqube information
MYSQL_USER Dbuser used for connecting the sonarqube application
MYSQL_PASSWORD Password for dbuser
SONARQUBE_JDBC_USERNAME Username for connecting to the mysql db (make sure this is the same as MYSQL_USER)
SONARQUBE_JDBC_PASSWORD Password for connecting to the mysql db (make sure this is the same as MYSQL_PASSWORD)
SONARQUBE_JDBC_URL JDBC Url for connecting to the mysql db

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.