-
-
Notifications
You must be signed in to change notification settings - Fork 37
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
Image errors for GitHub Actions #12
Comments
The nix image is fairly minimal right now but it could be extended. |
It's a bit misleading, but the error happens before the command is actually started and has nothing to do with either For https://github.com/niteoweb/nix-docker-base, which uses the same nixpkgs Docker builders as this repo, both
Yet on GitHub Actions, it fails in the very same way: https://github.com/Infinisil/github-actions-docker/runs/1271712451?check_suite_focus=true |
It's possible that GitHub Actions sets a custom entry point for the container. That would explain the error. |
Looks like somebody figured it out! actions/checkout#334 (comment) |
Was able to fix it for https://github.com/niteoweb/nix-docker-base with teamniteo/nix-docker-base@0a5ceed, turns out it's a bit different for Nix. See also actions/checkout#334 (comment). Feel free to reuse this fix for |
I am a bit torn. It allows running programs that didn't go through patchelf, which is both a bad and good thing. Depending if the binary was packaged by Nix or not. I do a similar trick in the devcontainer image because VSCode injects their own binary as well: docker-nixpkgs/images/devcontainer/default.nix Lines 98 to 99 in a720d8e
|
hi, could we do this for other images? I would love to use the nixpkgs nix-unstable image in our CI, instead of devcontainer. |
@infinisil I noticed your https://github.com/niteoweb/nix-docker-base is deprecated. What are you doing for building docker container images for GitHub CI? |
Not using docker anymore really 😅 |
Trying to use these images in GitHub Actions gives an error, see e.g. https://github.com/Infinisil/github-actions-docker/runs/1271863329:
This has already been reported in actions/checkout#334, but it doesn't really have anything to do with the checkout action (that's just the first action that tries to run the container).
Most likely it's some file missing in the image, but the error really doesn't help a lot to figure out which file.
A possible way to figure this out is to do a long-winded bisection with e.g. an alpine image, because that one works, and the image contents can be inspected with https://stackoverflow.com/a/53481010. So by incrementally copying files from that image to the docker-nixpkgs one, it should start working at some point.
The text was updated successfully, but these errors were encountered: