Merge pull request #20018 from adnelson/use_basename_docker

docker.buildUtils: use baseNameOf to allow for slashes in name
This commit is contained in:
Daiderd Jordan 2016-11-01 12:29:28 +01:00 committed by GitHub
commit f84e2efcfd

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;