Skip to content

Instantly share code, notes, and snippets.

@avoidik
Last active January 9, 2025 17:52
Show Gist options
  • Save avoidik/8041e515a0de04fa3b539a0cbdb59239 to your computer and use it in GitHub Desktop.
Save avoidik/8041e515a0de04fa3b539a0cbdb59239 to your computer and use it in GitHub Desktop.
QuickStart - SonarQube in Docker
$ git clone https://github.com/SonarSource/docker-sonarqube
$ cd docker-sonarqube
$ docker build -t sonarqube:9.9.4.87374 --build-arg SONARQUBE_VERSION=9.9.4.87374 -f 9/community/Dockerfile 9/community/
$ docker run --rm -i -t --name sonarqube -p 9000:9000 \
    --security-opt seccomp=unconfined --security-opt apparmor=unconfined \
    -e SONAR_SEARCH_JAVAADDITIONALOPTS='-Dbootstrap.system_call_filter=false' \
    sonarqube:9.9.4.87374
@avoidik
Copy link
Author

avoidik commented Jan 7, 2025

Extract only configuration file

$ curl -sL https://binaries.sonarsource.com/Distribution/sonarqube/sonarqube-9.9.4.87374.zip | bsdtar -q -x -O -f- -- sonarqube-9.9.4.87374/conf/sonar.properties

@avoidik
Copy link
Author

avoidik commented Jan 9, 2025

export SONAR_SCANNER_OPTS='-Xmx2048m'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment