From 43cbba0274446797f6a8b3b26c8ac2bf5c792ebe Mon Sep 17 00:00:00 2001 From: Antoine Eiche Date: Thu, 27 Dec 2018 11:10:53 +0100 Subject: dockerTools.examples.runAsRootParentImage: init Example of running something as root on top of a parent image. This is a regression test related to the PR #52109. --- pkgs/build-support/docker/examples.nix | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'pkgs/build-support') diff --git a/pkgs/build-support/docker/examples.nix b/pkgs/build-support/docker/examples.nix index 090bfafa0855..a5a65fb2a409 100644 --- a/pkgs/build-support/docker/examples.nix +++ b/pkgs/build-support/docker/examples.nix @@ -176,4 +176,13 @@ rec { ]; }; }; + + # 12. example of running something as root on top of a parent image + # Regression test related to PR #52109 + runAsRootParentImage = buildImage { + name = "runAsRootParentImage"; + tag = "latest"; + runAsRoot = "touch /example-file"; + fromImage = bash; + }; } -- cgit 1.4.1