4 ms·
Wonder why he never mentions Nix/NixOps or Guix. If we talk about purely functional configuration and runtime changes those seem to be like the projects to foc
by rdtsc 10y ago
Wonder why he never mentions Nix/NixOps or Guix.
If we talk about purely functional configuration and runtime changes those seem to be like the projects to focus on.
- viraptor 10y agoI read this as a specific proposal for future Docker, or some overlay description format for it. Also the author is talking about runtime checks while nix/guix provides install/configuration description. Nix/guix solves some cool things, but doesn't do isolation (as in process isolation). It can do it (namespaces live in the kernel after all), but it's not a first-class thing.
- arianvanp 10y agoWe van start nix expressions in isolated containers with a single command! https://nixos.org/releases/nixos/14.12/nixos-14.12.374.61adf9e/manual/ch-containers.html https://nixos.org/releases/nixos/14.12/nixos-14.12.374.61adf...
- viraptor 10y agoThat's cool! I see there's a lot of fun things already in. But also it seems like something the author didn't want. Nixos containers are explicitly whole system according to the documentation ("This command will return as soon as the container has booted and has reached multi-user.target.") rather than a single app.
- k__ 10y agoDoesn't Nix have nix-shell, which is like this?
- rdtsc 10y agoThat's good stuff! Thanks for sharing that.
- davexunit 10y agoguix environment --container
- viraptor 10y agoSame as the response to arianvanp. Looks good. But isn't this mostly about system in a container rather than one app (binary + deps)?
- davexunit 10y ago'guix environment --container' allows one or more applications to be put into a container and you can optionally share files/directories from the host system with it. The distro built on Guix, GuixSD, has preliminary support for full-system containers using the same code that 'guix environment' uses. So you can have it whichever way you'd like. https://www.gnu.org/software/guix/manual/html_node/Invoking-guix-environment.html# https://www.gnu.org/software/guix/manual/html_node/Invoking-...
- viraptor 10y agoWhat I meant is - what's the top level of the container? The target app, or an init system?
- xj9 10y agoIt's init + your app, which is exactly what you want. PID 1 has some important responsibilities that aren't handled anywhere else. I'd argue that most init systems go far beyond what you actually want PID 1 to do, but that is a different discussion.
- viraptor 10y agoI definitely don't want any init in the container. I want the app runnning in there and nothing else. For a single application system, pid 1 has only 1 responsibility - collect zombies. I treat that as an emergency solution - apps should clean their children themselves under normal circumstances. Everything else can be handled outside of the container.