Skip to content

Commit

Permalink
better port
Browse files Browse the repository at this point in the history
  • Loading branch information
Christopher Gross cogross committed Apr 30, 2024
1 parent 70b7936 commit 1e318a5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions docker/sonarqube/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ docker-compose up -d
```

## Setup SonarQube
go to https://localhost:9999 to view the sonarqube app
go to https://localhost:7777 to view the sonarqube app
admin/admin is the default password (change it when you first access it)

How do you want to create your project? Manually
Expand All @@ -43,7 +43,7 @@ Click Maven

Create a sonar.sh script, add it to your ~/bin dir (or anywhere that is on your configured path)
```bash
mvn clean verify && mvn -e sonar:sonar -Dsonar.projectKey=Datawave -Dsonar.host.url=http://localhost:9999 -Dsonar.login=<TOKEN>
mvn clean verify && mvn -e sonar:sonar -Dsonar.projectKey=Datawave -Dsonar.host.url=http://localhost:7777 -Dsonar.login=<TOKEN>
```

Run the new sonar.sh script in your checked out datawave repository. When it is done, return to the browser and you can see the results of your scan.
Expand Down
2 changes: 1 addition & 1 deletion docker/sonarqube/compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ services:
- sonarqube_extensions:/opt/sonarqube/extensions
- sonarqube_logs:/opt/sonarqube/logs
ports:
- "9999:9000"
- "7777:9000"
db:
image: postgres:12
environment:
Expand Down

0 comments on commit 1e318a5

Please sign in to comment.