Created
December 12, 2021 17:00
-
-
Save gavvvr/53f237a4636bf08104d21a74daa6c0d8 to your computer and use it in GitHub Desktop.
Quickly run dockerized SonarQube
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
docker run --rm \ | |
--network host \ | |
-e SONAR_HOST_URL="http://localhost:9000" \ | |
-e SONAR_LOGIN=$SONAR_LOGIN \ | |
-v $HOME/.sonar/cache:/opt/sonar-scanner/.sonar/cache \ | |
-v `pwd`:/usr/src \ | |
sonarsource/sonar-scanner-cli:4 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
docker run -d \ | |
--name sonarqube \ | |
-e SONAR_ES_BOOTSTRAP_CHECKS_DISABLE=true \ | |
-v $HOME/Documents/sonar/conf:/opt/sonarqube/conf \ | |
-v $HOME/Documents/sonar/data:/opt/sonarqube/data \ | |
-v $HOME/Documents/sonar/logs:/opt/sonarqube/logs \ | |
-v $HOME/Documents/sonar/extensions:/opt/sonarqube/extensions \ | |
-p 9000:9000 \ | |
sonarqube:9.2.1-community |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment