Skip to content
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

Nixpacks base debian image doesn't work on M1 macs #117

Closed
coffee-cup opened this issue May 13, 2022 · 1 comment · Fixed by #118
Closed

Nixpacks base debian image doesn't work on M1 macs #117

coffee-cup opened this issue May 13, 2022 · 1 comment · Fixed by #118
Labels
bug Something isn't working

Comments

@coffee-cup
Copy link
Contributor

coffee-cup commented May 13, 2022

Building with the base debian image hosted on GHCR doesn't work on M1 macs and fails with the following error. Assuming it is because Nix installed on x86 hardware but is installing packages on arm64.

Building the base image locally and referencing that works as expected.

#8 18.69 copying path '/nix/store/7b2z05mgfwgb58ya4i3gynhvjw22v29q-xz-5.2.5-bin' from 'https://cache.nixos.org'...
#8 18.74 copying path '/nix/store/j72mw6h364nmk7l3mq6gqwjd568l7r8l-perl-5.34.1' from 'https://cache.nixos.org'...
#8 24.70 copying path '/nix/store/hfcv57qibyrqha8gmnk0mkz6k9z3krhy-sqlite-3.38.3' from 'https://cache.nixos.org'...
#8 24.95 copying path '/nix/store/lq3ljqhz6zwkwsyvjyw7750n35psz4fs-openssl-1.1.1o-bin' from 'https://cache.nixos.org'...
#8 25.14 copying path '/nix/store/01kia41csjia67pry1rv828i9pvnnqfq-python3-3.9.12' from 'https://cache.nixos.org'...
#8 36.30 copying path '/nix/store/v3gg98k5gd0fjfx1wf6vvjmj2idk1gg6-openssl-1.1.1o-dev' from 'https://cache.nixos.org'...
#8 36.47 copying path '/nix/store/g146gm78fviybvpdipvmgchv5ikv9d4h-stdenv-linux' from 'https://cache.nixos.org'...
#8 36.49 copying path '/nix/store/sm20x1x5mly3r9adv751ipczbq8p66a5-zlib-1.2.12-dev' from 'https://cache.nixos.org'...
#8 36.53 copying path '/nix/store/vyyar1czkx02agclv9z60mbsmh54l5aq-nodejs-16.15.0' from 'https://cache.nixos.org'...
#8 42.88 error: unable to load seccomp BPF program: Invalid argument
#8 42.88 (use '--show-trace' to show detailed location information)
------
executor failed running [/bin/bash -o pipefail -c nix-env -if environment.nix]: exit code: 1
Error: Docker build failed

The workaround is fine but ideally nixpacks works on all architectures. I think it might make sense to revert back to the old way of setting the base image.

Thoughts @wyzlle

@coffee-cup coffee-cup added the bug Something isn't working label May 13, 2022
@ghost
Copy link

ghost commented May 13, 2022

Fixing this should be easy. Will get back with a fix soon.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant