-
Notifications
You must be signed in to change notification settings - Fork 310
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
Docker image for version 22.3.0 does not contain the scancode
executable anymore
#8663
Comments
Interestingly, it works for me when building the image locally via Maybe we're just tagging the wrong image instead of something being wrong with the build? |
scancode
executbale anymorescancode
executable anymore
The only possibly relevant change between 22.2.0...22.3.0 seems to be ae16d01, but I currently do not see how it could be related. |
Should be, reverting it make image works again. I will try to analyze it afternoon |
I think we have a bigger structural problem. Looking here, https://github.com/oss-review-toolkit/ort/actions/runs/9098861442/job/25010063746#step:11:155, is clear that our build on Github is pulling only the caches, disregarding the changes on the Dockerfile. |
But why is that a problem? Just pulling / populating the cache should be no issue, because if the Dockerfile was modified, the cache entries should simply not be used, but relevant parts would be built from scratch. AT least that's how it should be. |
Not sure what the issue was, but it's gone with release 22.5.0. I.e., running
gives
as expected. |
Actually there is an explanation. If you look few commits before, @fviernau update some of python dependencies, which invalidated the cache for the "pythonbuild" layer. Before, only the "python" layer was copied from cache, as "pythonbuild" layer was never regenerated. "python" layer was cached before the ARG change, so when processed by the runtime layer is always a hit and miss. The only question remaining is why the cache missed scancode after the transition, need to keep an eye for future builds. |
But the funny thing was that IIRC Python was present in the image, but just ScanCode was not... |
Describe the bug
The
scancode
executable is not available in the released Docker image anymore.To Reproduce
Running
fails with
Expected behavior
The
scancode
executable should be contained in the Docker image and available inPATH
. Locations should beAdditional context
Last working version is 22.2.0:
The text was updated successfully, but these errors were encountered: