-
Notifications
You must be signed in to change notification settings - Fork 88
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
BaseDir / soruces path problem #29
Comments
Hi @DanielBoettner - take a look at the latest images that I uploaded to Docker Hub a couple of days ago - there was a PR submitted by another user that moved from using |
@DanielBoettner replicated the issue, kind of. Turns out the CMD line for the Dockerfile included I wasn't following Docker best practices for using
Note that this is after I get the images updated, which might take me about an hour. If you want to try it with the images you currently have, you can also override the entire
Let me know how this goes. |
For future reference, Dockerfile ENTRYPOINT best practices: https://docs.docker.com/develop/develop-images/dockerfile_best-practices/#entrypoint |
i dont want dispute what the best practice is in this regard but this[1] change potentially breaks Jenkins jobs with most importantly, IMHO i dont think that overwriting existing docker image tags with this/any change is a good policy. if a new tag/version with the "fix" was pushed instead of overwriting existing ones, it would not break existing stuff (unless it relied on the latest tag) anyway, let me take the chance to appreciate the work you are offering to the community here. [1] 71cce66 cc/ @newtmitch |
@newtmitch thank you for your great work |
Hello and thank your for your work on this.
I want to report an issues with a likely relation to #28 .
I have the following
sonar-project.properties
The docker run command is
Which results in the error:
Project home must be an existing directory: /var/www/html/src
It seems for some reason the scanner always expects
/src
to be in the path.In my attempt to find a working config.
I created an empty
src
directory in/var/www/html/
and and did setsonar.sources
to../
which starts the scan but ignores all files because they are not in the project directory.
TL;DR
/var/www/html
because otherwise the scanner fails to parse the coverage.xml file. Which generates the paths with the absolute path/var/www/html/
and thesonar-project.properties
reflect that, the scan fails because the scanner seems to expectsrc
in the project path.The text was updated successfully, but these errors were encountered: