-
-
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
feat: added a nixStatic docker image #29
Conversation
@zimbatm passes CI now |
@teto is the image including references to the |
Is the PR ready? |
sadly no sry. I dont have much time to complete it right now. Is it ok to leave it pending ? I can close it anyway. |
no worries, let's just leave it like that in case somebody else wants to take over |
Use the same version of nixpkgs as the shell itself
0d3067a
to
d0af823
Compare
This is a special docker images that contains no /nix/store. And only static binaries in /bin. The main use-case is to be able to bind-mount /nix from the host into the container.
finally got around and finished this! |
good that you could work around this, we are moving our runners towards nixos (which solve most of the problem) si I probably would never have gotten around to finishing this :s |
actually the static nix binary is currently segfaulting when run inside of the container, so it looks like it's not entirely static |
Turns out the user home needs to exist. I added a complementary entrypoint and wrapper script: https://github.com/nix-community/docker-nixpkgs/tree/master/images/nix-unstable-static#using-the-container-with-the-host-store |
an annoying thing about static nix: