MariaDB: The Database Powering Sonarqube's Code Analysis (Sonarqube 5.5)
- Sonarqube uses a database to store information like code metrics, code coverage details, and issue tracking.
- It performs automatic code reviews, finding bugs, code smells (sections of code that might indicate bad practices), and security vulnerabilities across various programming languages.
- An open-source platform for continuous code inspection and code quality management.
MariaDB
- In this case, MariaDB acts as the storage for Sonarqube's data.
- RDBMS is a type of database that stores data in tables with rows and columns, allowing for structured queries to retrieve information.
- A community-developed relational database management system (RDBMS) that is a fork of MySQL.
Sonarqube-ops
- It likely includes scripts to specifically set up a MariaDB database for Sonarqube and configure Sonarqube to use that database.
- A collection of scripts and tools to help with installing, configuring, and managing Sonarqube.
Putting it together
- Sonarqube analyzes code.
- Sonarqube stores the code analysis results (metrics, coverage, issues) in a database.
- Sonarqube-ops helps set up and manage Mariadb to act as that database.
Important Note:
- While Sonarqube can use MariaDB, it's officially recommended to use PostgreSQL for newer versions of Sonarqube (not version 5.5) for better performance and scalability.
-
MariaDB Setup:
-
Sonarqube configuration:
sonarqube mariadb sonarqube-ops