I set up a local kubernetes cluster in Docker Desktop and installed SonarQube inside. I am comparing between the two ways sonar scanner can be invoked, docker image and the zip file. According to the documentation, the extracted executable from the zip file has to be run inside the root directory of the project I want to scan. Docker image doesn’t have that restriction.
I just want to know if it is actually not possible to run sonar scanner else where. I plan to invoke the sonar-scanner command programmatically so I need to be able to call that command anywhere. Should I have gone with docker image instead?