I’m using the SonarQube server docker image
docker run -p 9000:9000 sonarqube:latest
and I’m trying to automate the sonar scanner with a Python script. For this, I also use the docker image of the sonar-scanner-cli (Docker Hub).
First, I start the server with the given command above. Then, I start the scanner on a folder with the following command:
docker run --rm -e SONAR_HOST_URL="http://localhost:9000" -v "/my/folder:/usr/src" --network=host sonarsource/sonar-scanner-cli -D sonar.projectKey=scan_result -D sonar.forceAuthentication=false -D sonar.login=admin -D sonar.password=admin
The scan itself works, but when I try to access the report after it has finished, I have to change the default password first on the SonarQube server. This is a bit annoying in my case because I just want to automate things for research purposes. Is there a somewhat easy way for me to disable this feature of having to change the default password? Or is there perhaps an easier way to automate the sonar scanner than my current setup with docker?
I’d appreciate any kind of help!