diff options
author | Antoine Eiche <lewo@abesis.fr> | 2018-02-01 16:13:05 +0100 |
---|---|---|
committer | Antoine Eiche <lewo@abesis.fr> | 2018-03-13 11:59:22 +0100 |
commit | e8f452f110864dcee0d4d42e306686179638a5cf (patch) | |
tree | 528dc586ac615fdfbebffd2492d632ea6e211768 /pkgs/build-support | |
parent | 7ec04712423d47148f98fe3c935c60d181af99c4 (diff) |
dockerTools: add an onTopOfPulledImage example
This allows to test if a pulled image can be updated by using our Docker tools.
Diffstat (limited to 'pkgs/build-support')
-rw-r--r-- | pkgs/build-support/docker/examples.nix | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/pkgs/build-support/docker/examples.nix b/pkgs/build-support/docker/examples.nix index 691d4bb74dbfe..315440349b6b6 100644 --- a/pkgs/build-support/docker/examples.nix +++ b/pkgs/build-support/docker/examples.nix @@ -116,4 +116,12 @@ rec { Env = [ "NIX_PAGER=cat" ]; }; }; + + # 7. example of adding something on top of an image pull by our + # dockerTools chain. + onTopOfPulledImage = buildImage { + name = "onTopOfPulledImage"; + fromImage = nixFromDockerHub; + contents = [ pkgs.hello ]; + }; } |