forked from mirrors/nixpkgs
Merge pull request #181544 from qowoz/misc-deprecations
dockerTools, nixos/kubernetes: fix deprecations
This commit is contained in:
commit
26839ce8e0
|
@ -23,7 +23,11 @@ let
|
||||||
infraContainer = pkgs.dockerTools.buildImage {
|
infraContainer = pkgs.dockerTools.buildImage {
|
||||||
name = "pause";
|
name = "pause";
|
||||||
tag = "latest";
|
tag = "latest";
|
||||||
contents = top.package.pause;
|
copyToRoot = pkgs.buildEnv {
|
||||||
|
name = "image-root";
|
||||||
|
pathsToLink = [ "/bin" ];
|
||||||
|
paths = [ top.package.pause ];
|
||||||
|
};
|
||||||
config.Cmd = ["/bin/pause"];
|
config.Cmd = ["/bin/pause"];
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
@ -33,7 +33,11 @@ let
|
||||||
redisImage = pkgs.dockerTools.buildImage {
|
redisImage = pkgs.dockerTools.buildImage {
|
||||||
name = "redis";
|
name = "redis";
|
||||||
tag = "latest";
|
tag = "latest";
|
||||||
contents = [ pkgs.redis pkgs.bind.host ];
|
copyToRoot = pkgs.buildEnv {
|
||||||
|
name = "image-root";
|
||||||
|
pathsToLink = [ "/bin" ];
|
||||||
|
paths = [ pkgs.redis pkgs.bind.host ];
|
||||||
|
};
|
||||||
config.Entrypoint = ["/bin/redis-server"];
|
config.Entrypoint = ["/bin/redis-server"];
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -54,7 +58,11 @@ let
|
||||||
probeImage = pkgs.dockerTools.buildImage {
|
probeImage = pkgs.dockerTools.buildImage {
|
||||||
name = "probe";
|
name = "probe";
|
||||||
tag = "latest";
|
tag = "latest";
|
||||||
contents = [ pkgs.bind.host pkgs.busybox ];
|
copyToRoot = pkgs.buildEnv {
|
||||||
|
name = "image-root";
|
||||||
|
pathsToLink = [ "/bin" ];
|
||||||
|
paths = [ pkgs.bind.host pkgs.busybox ];
|
||||||
|
};
|
||||||
config.Entrypoint = ["/bin/tail"];
|
config.Entrypoint = ["/bin/tail"];
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
@ -84,7 +84,11 @@ let
|
||||||
kubectlImage = pkgs.dockerTools.buildImage {
|
kubectlImage = pkgs.dockerTools.buildImage {
|
||||||
name = "kubectl";
|
name = "kubectl";
|
||||||
tag = "latest";
|
tag = "latest";
|
||||||
contents = [ copyKubectl pkgs.busybox kubectlPod2 ];
|
copyToRoot = pkgs.buildEnv {
|
||||||
|
name = "image-root";
|
||||||
|
pathsToLink = [ "/bin" ];
|
||||||
|
paths = [ copyKubectl pkgs.busybox kubectlPod2 ];
|
||||||
|
};
|
||||||
config.Entrypoint = ["/bin/sh"];
|
config.Entrypoint = ["/bin/sh"];
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
@ -588,7 +588,7 @@ rec {
|
||||||
chown 1000 ./home/jane
|
chown 1000 ./home/jane
|
||||||
ln -s ${pkgs.hello.overrideAttrs (o: {
|
ln -s ${pkgs.hello.overrideAttrs (o: {
|
||||||
# A unique `hello` to make sure that it isn't included via another mechanism by accident.
|
# A unique `hello` to make sure that it isn't included via another mechanism by accident.
|
||||||
configureFlags = o.configureFlags or "" + " --program-prefix=layeredImageWithFakeRootCommands-";
|
configureFlags = o.configureFlags or [] ++ [ " --program-prefix=layeredImageWithFakeRootCommands-" ];
|
||||||
doCheck = false;
|
doCheck = false;
|
||||||
})} ./hello
|
})} ./hello
|
||||||
'';
|
'';
|
||||||
|
|
Loading…
Reference in a new issue