nixpkgs/pkgs/build-support/docker
Antoine Eiche df589a438e dockerTools.buildImageWithNixDb: populate the Nix Db of the image Nix store
Currently, the contents closure is copied to the layer but there is no
nix database initialization. If pkgs.nix is added in the contents,
nix-store doesn't work because there is no nix database.

From the contents of the layer, this commit generates and loads the
database in the nix store of the container. This only works if there
is no parent layer that already have a nix store (to support several
nix layers, we would have to merge nix databases of parent layers).

We also add an example to play with the nix store inside the
container. Note it seems `more` is a missing dependency of the nix
package!
2017-09-20 20:14:24 +02:00
..
default.nix dockerTools.buildImageWithNixDb: populate the Nix Db of the image Nix store 2017-09-20 20:14:24 +02:00
detjson.py dockerTools: private registry support 2016-01-27 21:13:07 +00:00
examples.nix dockerTools.buildImageWithNixDb: populate the Nix Db of the image Nix store 2017-09-20 20:14:24 +02:00
pull.sh dockerTools.pullImage: change the docker deamon readiness mechanism 2017-09-04 10:52:16 +02:00
tarsum.go dockerTools: disable compression in tarsum.go 2016-07-02 02:22:36 -04:00