Created
January 24, 2018 16:44
-
-
Save mosser/68621251a59e909ce1ad97199e661d69 to your computer and use it in GitHub Desktop.
Sonarqube setup for Island 2018
This file contains 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
version: "3" | |
services: | |
sonarqube: | |
image: sonarqube:alpine | |
container_name: island-sonar | |
ports: | |
- "9000:9000" | |
networks: | |
- sonarnet | |
environment: | |
- SONARQUBE_JDBC_URL=jdbc:postgresql://db:5432/sonar | |
volumes: | |
- ./sonarqube_conf:/opt/sonarqube/conf | |
- ./sonarqube_data:/opt/sonarqube/data | |
- ./sonarqube_extensions:/opt/sonarqube/extensions | |
- ./sonarqube_bundled-plugins:/opt/sonarqube/lib/bundled-plugins | |
db: | |
image: postgres:10 | |
container_name: island-sonar-db | |
networks: | |
- sonarnet | |
environment: | |
- POSTGRES_USER=sonar | |
- POSTGRES_PASSWORD=sonar | |
volumes: | |
- ./postgresql:/var/lib/postgresql | |
# This needs explicit mapping due to https://github.com/docker-library/postgres/blob/4e48e3228a30763913ece952c611e5e9b95c8759/Dockerfile.template#L52 | |
- ./postgresql_data:/var/lib/postgresql/data | |
networks: | |
sonarnet: | |
driver: bridge |
This file contains 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
mvn org.jacoco:jacoco-maven-plugin:prepare-agent clean install |
This file contains 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
mvn sonar:sonar \ | |
-Dsonar.host.url=http://localhost:9000 \ | |
-Dsonar.login=INSERT_TOKEN_HERE |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment