-
Notifications
You must be signed in to change notification settings - Fork 0
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
feat: Build bunq2ynab image with nix and Bazel #544
Conversation
Steps to setup on macOS. Following the documentation from https://nixos.org/manual/nixpkgs/stable/#chap-special
|
Copied an example from https://github.com/jvolkman/bazel-nix-example/tree/134e5c9d66b7e3baa0f29ce049bf27d9794f352b. It kinda works, if I modify the Let's try if we can make this work with |
…uilding-docker-with-nix
Asking for help in the BuildBuddy community https://buildbuddy.slack.com/archives/CUY16GNK1/p1695741392487519?thread_ts=1695126450.569509&cid=CUY16GNK1 |
Now running into an issue with wheels
As mentioned here pyca/cryptography#6378 (comment) this might be because the wrong wheel files are downloaded by Bazel or that the nix base image is missing necessary files. The latter would also explain why the hermetic interpreter wouldn't run in the first place 🤔 |
…ilding-docker-with-nix
ref #451
History trying to get nix to work inside BuildBuddy
nix
binary not thenix-build
binary which is required.buildbuddy
userTODO:
rules_oci
AssertionError: Cannot find .runfiles directory for /opt/hello_world
in BuildBuddy CIpy_image
macro.so
from darwin are copied into the image?requirement
helper everywhereHow the end result macro should look:
The py_image rule will wrap the binary with a
task
which sets thetarget_platforms
flag tocontainerized
to make sure we are not copying in the hermetic interpreter.