-
Notifications
You must be signed in to change notification settings - Fork 199
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
Static binary via pyoxidizer #923
Comments
I've started fiddeling around, but so far I couldn't make it work as a static binary. During ciffi compilation it cannot find a lib
Thoughts after that that might save some time for the others:
If somebody want to take a shot at this ciffi issue, here is how to set yourself up.
Write pyoxidizer.bzl for build configuration
When you build the image it already has sources included and command set to compile, but if you want to play around live you can mount it and compile from hand. Example:
|
I've created an issue in pyoxidizer repository - maybe somebody will help us with this one (I'm out of ideas). |
@jkrzemin thanks for the investigation. I tried to pick it up from where you have finished with some progress. The Unfortunately, I had issues adding Traceback (most recent call last):
File "<string>", line 1, in <module>
File "kapitan.cli", line 23, in <module>
File "kapitan.inputs.jsonnet", line 15, in <module>
File "kapitan.resources", line 28, in <module>
File "reclass", line 14, in <module>
File "reclass.cli", line 16, in <module>
ImportError: cannot import name 'get_storage' from partially initialized module 'reclass' (most likely due to a circular import) (/Users/jacek/Code/kapitan_fork/build/aarch64-apple-darwin/debug/install/lib/reclass/__init__.py) In regards to using Docker for compilation, I am not sure if cross-platform compilation would work on MacOS (more info in PyOxidizer/issues/566). We would need to use different workers for that. My attempt is here if everyone wants to give it a go. |
This issue is stale because it has been open 90 days with no activity. Remove stale label or comment or this will be closed in 7 days. |
Explore building a kapitan binary using https://pyoxidizer.readthedocs.io/en/stable/index.html
The text was updated successfully, but these errors were encountered: