add docker-compose

This commit is contained in:
zimbatm 2019-02-06 20:51:50 +01:00
parent fccaa2a29c
commit 2575fc5aa5
No known key found for this signature in database
GPG key ID: 71BAF6D40C1D63D7
3 changed files with 28 additions and 0 deletions

View file

@ -36,6 +36,7 @@ $ docker run -ti --rm registry.gitlab.com/zimbatm/docker-nixpkgs/curl http://ifc
| Image | Description |
| --- | --- |
| curl | CLI only |
| docker-compose | CLI only |
| kubectl | CLI only |
| kubernetes-helm | CLI only |
| nix | nix with deps |

View file

@ -0,0 +1,20 @@
{ dockerTools
, cacert
, 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"
];
};
}

View file

@ -3,6 +3,13 @@ _: pkgs: {
docker-nixpkgs = rec {
curl = pkgs.callPackage ./curl {};
docker-compose = pkgs.callPackage ./docker-compose {
docker-compose =
# master
pkgs.docker-compose or
# 18.09
pkgs.python3Packages.docker_compose;
};
kubectl = pkgs.callPackage ./kubectl {};
kubernetes-helm = pkgs.callPackage ./kubernetes-helm {};
nix = pkgs.callPackage ./nix {};