LnL7 / nix-docker

Docker images for the Nix package manager
MIT License
288 stars 41 forks source link

does not bootstrap system.build.etc aka /etc/ which means you should probably avoid nix-docker until it does #25

Closed ghuntley closed 5 years ago

ghuntley commented 5 years ago

Howdy Daiderd,

A quick GitHub issue to say that I appreciate the work you are doing. I don't have time atm to send in a pull-request but here's a repro. Related issues #9

repro

FROM lnl7/nix:2.1.2

# baseline
RUN nix-env -iA nixpkgs.busybox 

# trust/use these 3rd party caches
RUN nix-env -iA cachix -f https://github.com/NixOS/nixpkgs/tarball/889c72032f8595fcd7542c6032c208f6b8033db6
RUN cachix -v use hie-nix

💥

LnL7 commented 5 years ago

busybox binaries have much less functionality than the gnu versions, installing it globally is generally a bad idea and probably causing problems.

ghuntley commented 5 years ago

Ah no. The real issue is system.build.etc aka /etc/ isn't bootstrapped in the docker image. That was just a quick and easy way to demonstrate it.

LnL7 commented 5 years ago

Not sure what that means.

ghuntley commented 5 years ago

https://github.com/NixOS/nixos/blob/master/modules/system/etc/etc.nix

ghuntley commented 5 years ago

Bootstrapping etc will fix this problem and https://github.com/LnL7/nix-docker/issues/9

LnL7 commented 5 years ago

That's a nixos module. I still don't understand the problem or how it's related to the image.