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,6 @@
{ dockerTools
, cacert
{ buildCLIImage
, docker-compose
}:
dockerTools.buildLayeredImage {
inherit (docker-compose) name;
contents = [
cacert
docker-compose
];
config = {
Entrypoint = [ "/bin/docker-compose" ];
Env = [
"PATH=/bin"
"SSL_CERT_FILE=${cacert}/etc/ssl/certs/ca-bundle.crt"
];
};
buildCLIImage {
drv = docker-compose;
}