News for hackers. Stuff that matters.
Re:GNU Guix package definitions for Gov.uk software and systems by henryslater on Monday July 01, 2019 @10:10AM (#20325370)
Yeah but if I had the option of Docker or something nix based, why would I not choose Docker? Particularly as deploying to most Clouds is pretty easy if an app in already in a Docker Container.
Re:GNU Guix package definitions for Gov.uk software and systems by danieldk on Monday July 01, 2019 @10:25AM (#20325518)
You can easily build Docker images using Nix. Benefits: (1) reproducability, if you pin to a certain nixpkgs, you always get the same set of packages; (2) layers don't have to be full filesystem diffs; (3) the image only contains the computed closure. E.g. I produce Docker images an NLP program with Nix. The image only contains: glibc, tensorflow, my program, word embeddings, the model. No other system files or dependencies. Since the image build expression uses Nix expressions, I can also directly use the same models on my Linux workstation, Linux servers, macOS, etc. without Docker.

This is a good starting point:

https://grahamc.com/blog/nix-and-layered-docker-images

Re:GNU Guix package definitions for Gov.uk software and systems by fiddlerwoaroof on Monday July 01, 2019 @10:21AM (#20325482)
One advantage is that guix/nix only isolate dependencies. So, if I want two or more utilities to interact, I don’t need to bring in something like docker-compose or used network protocols, I just depend on both and write a script or something. This way, I can start with each service on its own container and then, as necessary, move two services into one container or whatever.

Also, nix/guix are somewhat lower-overhead ways to build a system for local development than containers.

Re:GNU Guix package definitions for Gov.uk software and systems by civodul on Monday July 01, 2019 @11:45AM (#20326505)
Guix provides interoperability with Docker: the 'guix pack' command builds Docker images of applications, and 'guix system docker-image' builds images containing a complete system with services, etc.

So Guix gives you reproducibility, provenance tracking, and hackability, but you can still "speak Docker".

Re:GNU Guix package definitions for Gov.uk software and systems by adamtulinius on Monday July 01, 2019 @10:37AM (#20325650)
Combine it and use nix for building docker containers. :)