We have noticed in our current project that Sonarqube is no longer working for coworkers that are running macOS Monterey (v 12.3.1) using docker-compose, however we can run it with docker only without compose.
This is our script:
"presonar:run": "docker-compose -f docker-compose.sonar.yml up -d && node wait-on-sonar.js",
"sonar:run": "sonar-scanner -Dsonar.projectKey=service -Dsonar.sources=. -Dsonar.host.url=http://localhost:9000 -Dsonar.login=admin -Dsonar.password=admin"
Following error:
Starting service_sonarqube_1 ... done
Attaching to service_sonarqube_1
sonarqube_1 | Dropping Privileges
sonarqube_1 | Error: Unable to access jarfile lib/sonar-application-9.4.0.54424.jar
docker-compose.sonar.yml
version: '3'
volumes:
sonarq:
driver_opts:
type: none
device: '${HOME}/sonarq'
o: bind
services:
sonarqube:
image: sonarqube:latest
ports:
- '9000:9000'
volumes:
- sonarq:/opt/sonarqube
Must-share information (formatted with Markdown):
- sonarqube:latest
- run sonarqube
- what have you tried so far to achieve this