-
Notifications
You must be signed in to change notification settings - Fork 269
Open
Labels
bugSomething isn't workingSomething isn't working
Description
Current Behavior (bug)
When trying to build a multi-platform image with devbox and nix there is a eBPF issue causing the dockerfile to fail to build. I have been able to reproduce this by running the base Devbox rootUser dockerfile in this repo. This does not seem to happen if I use the non-root Dockerfile
docker buildx build --platform linux/amd64,linux/arm64 . -f internal/impl/generate/tmpl/DevboxImageDockerfileRootUser
The exact error can be seen here:
51.36 ~~> Setting up shell profiles for Fish with conf.d/nix.fish inside /etc/fish /usr/local/etc/fish /opt/homebrew/etc/fish /opt/local/etc/fish
51.36
51.42 ~~> Setting up the default profile
51.42
51.48 ---- sudo execution ------------------------------------------------------------
51.48 I am executing:
51.48
51.48 $ sudo HOME=/root /nix/store/9670sxa916xmv8n1kqs7cdvmnsrhrdjv-nix-2.17.0/bin/nix-env -i /nix/store/9670sxa916xmv8n1kqs7cdvmnsrhrdjv-nix-2.17.0
51.48
51.48 to install a bootstrapping Nix in to the default profile
51.48
52.00 installing 'nix-2.17.0'
52.25 error:
52.25 … while setting up the build environment
52.25
52.25 error: unable to load seccomp BPF program: Invalid argument
52.38
52.38 ---- oh no! --------------------------------------------------------------------
52.38 Oh no, something went wrong. If you can take all the output and open
52.42 an issue, we'd love to fix the problem so nobody else has this issue.
52.42
52.42 :(
52.42
52.43 We'd love to help if you need it.
52.43
52.43 You can open an issue at
52.43 https://github.com/NixOS/nix/issues/new?labels=installer&template=installer.md
52.43
52.43 Or get in touch with the community: https://nixos.org/community
52.43
Expected Behavior (fix)
Devbox Docker images should build cross platform
Additional context
I have currently tried building this on an amd64 Macbook and ubuntu VM, this might work if built on an arm64 macbook
dimaqq
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working