-
Notifications
You must be signed in to change notification settings - Fork 2
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
Chainguard wolfi-base image as base for docker #68
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Works in local cluster.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Linting works fine!
I tried to build it locally via docker build . -t test
. This results in the following error:
0.428 ImportError: cannot import name 'sha512' from 'hashlib' (/usr/lib/python3.12/hashlib.py)
Does this works for you?
In my local cluster, I changed the image to sha-43beb4c11cc3
. It looks like that no processing happens besides Found id templates ...
.
Does this works for you?
Maybe I'm doing something wrong! xD
This works for me and I am not able to reproduce. Could you share more of the logs?
You are not doing something wrong, this is because the non-json logging is still missing. You could try the wolfi-image branch in the harbor repository in Gitea to see all logging messages. I will add the logging this week. |
@peters-david Here are the tracebacks. Seems to happen on |
Thanks for the info! Take your time! I tested with the |
It turned out to be a problem on my side. On my local machine the If I pull the You do not need to remove pip then! :-) Alternatively we cause also use sha256 digests and let Renovate update them, e.g.:
But just an idea! |
We could also think about using non root users on later build stages at the Dockerfile. But this might be something for another PR. Just as hint. |
The current error |
Added a temporal fix to pin the |
This pull request exchanges the python/ubuntu and alpine images in the Dockerfile for the wolfi-base image (see https://github.com/wolfi-dev). This was requested in #58 .
As the wolfi-base image is very restrictive with dependencies / packages, some of the dependencies needed to be changed in order to be able to build with nuitka. Especially the dependency
dll
caused issues as building theharbor.bin
from python code also involves building its dependencies likeharborapi
.