-
Notifications
You must be signed in to change notification settings - Fork 78
Sonar Scanner Not Found In docker container #59
Comments
Have you checked the permissions on the "java" file? What gives you the following command:
|
I can reproduce that. Manually linking a java binary, that is installed by system tools, just works.
(I know that the second one is failing because of missing auth, but at this point we know that the java process is running already so this is fine) |
Thanks for your comment @peh. It's just unfortunate that such a workaround is required to have it working out of the box. I don't know Docker enough to understand why this fails in the first place, and if someone with a good knowledge could help to sort this out, that'd be awesome. |
It could actually be a problem with the scanner. I'll investigate that |
Okay. Investigation found that this is actually a problem of "Alpine". Not really a problem but it's simply not compatible as it's musl based and doesn't support glibc |
Thanks a lot for the investigation @peh! I will add this to the FAQ. |
actually an even easier solution is after running sonar-scanner once:
in all following scanner runs it works as the system java is used. |
The link is broken, could you replace it? please =) . I really need this one |
https://laptrinhx.com/docker-for-mac-alpine-glibc-issues-802275018 |
Hello, recently we tried to use this library to integrate sonar scanner in our application we faced this problem:
Can someone helps us point out the actual reason on this and possible solution to solve this issue? Would be much appreciated for any information:). Thanks.
The text was updated successfully, but these errors were encountered: