diff options
author | Antoine Eiche <lewo@abesis.fr> | 2018-12-27 11:10:53 +0100 |
---|---|---|
committer | Antoine Eiche <lewo@abesis.fr> | 2018-12-27 11:15:35 +0100 |
commit | 43cbba0274446797f6a8b3b26c8ac2bf5c792ebe (patch) | |
tree | f92e04c058e59295cb5469483956c3d1e3875971 /pkgs/build-support/docker/examples.nix | |
parent | 9d9a993b73316a19d7020f435eddb256777d94ca (diff) | |
download | nixlib-43cbba0274446797f6a8b3b26c8ac2bf5c792ebe.tar nixlib-43cbba0274446797f6a8b3b26c8ac2bf5c792ebe.tar.gz nixlib-43cbba0274446797f6a8b3b26c8ac2bf5c792ebe.tar.bz2 nixlib-43cbba0274446797f6a8b3b26c8ac2bf5c792ebe.tar.lz nixlib-43cbba0274446797f6a8b3b26c8ac2bf5c792ebe.tar.xz nixlib-43cbba0274446797f6a8b3b26c8ac2bf5c792ebe.tar.zst nixlib-43cbba0274446797f6a8b3b26c8ac2bf5c792ebe.zip |
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.
Diffstat (limited to 'pkgs/build-support/docker/examples.nix')
-rw-r--r-- | pkgs/build-support/docker/examples.nix | 9 |
1 files changed, 9 insertions, 0 deletions
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; + }; } |