docker.buildUtils: use baseNameOf to allow for slashes in name

This commit is contained in:
Test 2016-10-31 10:11:48 -05:00
parent a6e4e8f600
commit ca5fda39dc

View file

@ -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;