Skip to content

marvinpuethe/docker-sonarqube-mysql

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 

Repository files navigation

⚠️ 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

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published