Merge pull request #20018 from adnelson/use_basename_docker
docker.buildUtils: use baseNameOf to allow for slashes in name
This commit is contained in:
commit
f84e2efcfd
1 changed files with 8 additions and 4 deletions
|
@ -395,10 +395,14 @@ rec {
|
|||
|
||||
layer =
|
||||
if runAsRoot == null
|
||||
then mkPureLayer { inherit name baseJson contents extraCommands; }
|
||||
else mkRootLayer { inherit name baseJson fromImage fromImageName
|
||||
fromImageTag contents runAsRoot diskSize
|
||||
extraCommands; };
|
||||
then mkPureLayer {
|
||||
name = baseName;
|
||||
inherit baseJson contents extraCommands;
|
||||
} else mkRootLayer {
|
||||
name = baseName;
|
||||
inherit baseJson fromImage fromImageName fromImageTag
|
||||
contents runAsRoot diskSize extraCommands;
|
||||
};
|
||||
result = runCommand "docker-image-${baseName}.tar.gz" {
|
||||
buildInputs = [ jshon pigz coreutils findutils ];
|
||||
imageName = name;
|
||||
|
|
Loading…
Reference in a new issue