mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-01 23:22:37 +00:00
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
@ -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 New Issue
Block a user