dockerTools: allow to pass extraCommands, uid and gid to buildLayeredImage

This commit is contained in:
Jaka Hudoklin
2019-01-10 16:02:23 +01:00
parent e46ee5e09d
commit 954cda5c9d
3 changed files with 12 additions and 3 deletions
+1
View File
@@ -155,6 +155,7 @@ rec {
layered-image = pkgs.dockerTools.buildLayeredImage {
name = "layered-image";
tag = "latest";
extraCommands = ''echo "(extraCommand)" > extraCommands'';
config.Cmd = [ "${pkgs.hello}/bin/hello" ];
contents = [ pkgs.hello pkgs.bash pkgs.coreutils ];
};