docker.buildUtils: use baseNameOf to allow for slashes in name
This commit is contained in:
parent
a6e4e8f600
commit
ca5fda39dc
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