-
-
Notifications
You must be signed in to change notification settings - Fork 14.5k
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
Unable to run container jobs using services.github-runners
#306373
Comments
Your suspicion sounds right. I'm not really sure how this works in a normal In this case, it seems like it may be bind-mounting the Node.JS directory, but not the rest of its closure in the Nix store, so it fails to find shared libraries. Maybe it'll work if you do this? container:
image: ubuntu:latest
volumes:
- /nix:/nix |
@thomasjm , you're absolutely right. Mounting I think the issue stems from the dynamic library loader, having a hard-coded path to the loader in the Nix store. |
Probably not just the loader, but potentially all runtime dependencies of the chosen Node.js. I think the right solution would be to configure GitHub runners on NixOS to mount the runtime closure of Node.js (not the full tl;dr from the docs: it looks like we need to set the |
Seems like its bug of
Since I tried to patch nodejs-20 to be built statically with overlay but failed. |
Describe the bug
Jobs fail when using a
container:
declaration in GitHub workflows, using a non-NixOS image.The container is well built and run, but the all the GitHub Actions run inside it will crash with:
Adding a rudimentary log step reveals that the node executable is there:
Steps To Reproduce
Steps to reproduce the behavior:
services.github-runners
.Expected behavior
GitHub Actions should execute OK even when run under containers.
Additional context
My suspicion is that we have a non-NixOS container (e.g.
debian
) that is trying to run to a NixOS executable (since the path to the symlink above does point to the Nix store).Notify maintainers
@veehaitch , @thomasjm
Metadata
Please run
nix-shell -p nix-info --run "nix-info -m"
and paste the result.Will fill it later, since I don't have access to the runner at this moment.
Add a 👍 reaction to issues you find important.
The text was updated successfully, but these errors were encountered: