mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-09-29 15:43:00 +00:00
nixos/kubernetes: use copyToRoot
instead of deprecated contents
This commit is contained in:
parent
0436831b1a
commit
e2659eea36
@ -23,7 +23,11 @@ let
|
||||
infraContainer = pkgs.dockerTools.buildImage {
|
||||
name = "pause";
|
||||
tag = "latest";
|
||||
contents = top.package.pause;
|
||||
copyToRoot = pkgs.buildEnv {
|
||||
name = "image-root";
|
||||
pathsToLink = [ "/bin" ];
|
||||
paths = [ top.package.pause ];
|
||||
};
|
||||
config.Cmd = ["/bin/pause"];
|
||||
};
|
||||
|
||||
|
@ -33,7 +33,11 @@ let
|
||||
redisImage = pkgs.dockerTools.buildImage {
|
||||
name = "redis";
|
||||
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"];
|
||||
};
|
||||
|
||||
@ -54,7 +58,11 @@ let
|
||||
probeImage = pkgs.dockerTools.buildImage {
|
||||
name = "probe";
|
||||
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"];
|
||||
};
|
||||
|
||||
|
@ -84,7 +84,11 @@ let
|
||||
kubectlImage = pkgs.dockerTools.buildImage {
|
||||
name = "kubectl";
|
||||
tag = "latest";
|
||||
contents = [ copyKubectl pkgs.busybox kubectlPod2 ];
|
||||
copyToRoot = pkgs.buildEnv {
|
||||
name = "image-root";
|
||||
pathsToLink = [ "/bin" ];
|
||||
paths = [ copyKubectl pkgs.busybox kubectlPod2 ];
|
||||
};
|
||||
config.Entrypoint = ["/bin/sh"];
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user