https://github.com/thahnen/sonarqube-local
Scripts around the local SonarQube instance(s) used for testing
https://github.com/thahnen/sonarqube-local
Last synced: over 1 year ago
JSON representation
Scripts around the local SonarQube instance(s) used for testing
- Host: GitHub
- URL: https://github.com/thahnen/sonarqube-local
- Owner: thahnen
- Created: 2023-05-22T15:14:46.000Z (about 3 years ago)
- Default Branch: develop
- Last Pushed: 2024-09-12T16:48:46.000Z (almost 2 years ago)
- Last Synced: 2025-01-21T23:32:04.504Z (over 1 year ago)
- Language: Ruby
- Homepage:
- Size: 23.4 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# sonarqube-local: Utilities for local SonarQube instance(s)
This repository contains scripts and utilities for working with local instance(s) of SonarQube.
Scripts working only with specific versions of SonarQube are marked with the information required.
This project should be only used with JetBrains DataGrip. The Homebrew formulae should work with
either macOS or Linux!
## SQL Scripts
- **reset-password.sql** to reset the password of the user *admin*
- **set-password.sql** to set the password of the user *admin* to *admin1* for testing
Regarding licensing of SonarQube editions other than Community, there is either a SQL script:
- **set-license.sql** to set the license instead of using the UI
or the SonarQube Web API can be used by invoking the following REST API endpoint with HTTP POST:
> curl -X POST http://localhost:9000/api/editions/set_license?license={license key}
## Homebrew formulae
A local formulae can be installed via
> brew install {local repository directory}/homebrew/{formulae name with file suffix}
- **sonarqube-dev.rb** for the latest Developer Edition
- **sonarqube-dev-99.rb** for the 9.9 LTA Developer Edition
- **sonarqube-ent.rb** for the latest Enterprise Edition
- **sonarqube-ent-99.rb** for the 9.9 LTA Enterprise Edition
- **sonarqube-dat.rb** for the latest Datacenter Edition
Updates can be done over all installed packages with Homebrew, for this "custom" formulaes rather
use take the manual approach:
> brew upgrade {formulae name without file suffix}
The services status can be listed with
> brew services list
A service can be started with
> brew services start {formulae name without file suffix}
A service can be stopped with
> brew services stop {formulae name without file suffix}