abstract CLI image generation

and add busybox in all the images
This commit is contained in:
zimbatm 2019-02-08 21:15:38 +01:00
parent 10e9882705
commit 9baba96f89
No known key found for this signature in database
GPG key ID: 71BAF6D40C1D63D7
6 changed files with 43 additions and 68 deletions

View file

@ -1,20 +1,7 @@
{ dockerTools
, cacert
{ buildCLIImage
, kubernetes-helm
}:
dockerTools.buildLayeredImage {
inherit (kubernetes-helm) name;
contents = [
cacert
kubernetes-helm
];
config = {
Entrypoint = [ "/bin/helm" ];
Env = [
"PATH=/bin"
"SSL_CERT_FILE=${cacert}/etc/ssl/certs/ca-bundle.crt"
];
};
buildCLIImage {
drv = kubernetes-helm;
binName = "helm";
}