Last active
September 22, 2025 13:29
-
-
Save PramithaMJ/87f91006eb4170bc563c21e96860285b to your computer and use it in GitHub Desktop.
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
| max virtual memory areas: Elasticsearch is failing a bootstrap check | |
| sudo sysctl -w vm.max_map_count=262144 | |
| Install sonarQube | |
| ```bash | |
| docker pull sonarqube | |
| ``` | |
| ```bash | |
| docker run -d --name sonarqube-db -e POSTGRES_USER=sonar -e POSTGRES_PASSWORD=sonar -e POSTGRES_DB=sonarqube postgres:alpine | |
| ``` | |
| Run SonarQube | |
| ```bash | |
| docker run -d --name sonarqube -p 9000:9000 --link sonarqube-db:db -e SONAR_JDBC_URL=jdbc:postgresql://db:5432/sonarqube -e SONAR_JDBC_USERNAME=sonar -e SONAR_JDBC_PASSWORD=sonar sonarqube | |
| ``` | |
| This command sets up the SonarQube container with a link to the PostgreSQL database. | |
| Set Sonar Scanner Home | |
| ```bash | |
| nano ~/.bashrc | |
| export SONAR_SCANNER_HOME=/path/to/sonar-scanner | |
| Add Sonar Scanner to PATH | |
| export PATH=$SONAR_SCANNER_HOME/bin:$PATH | |
| ``` |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment