Skip to content

Commit

Permalink
add docker-compose
Browse files Browse the repository at this point in the history
  • Loading branch information
zimbatm committed Feb 6, 2019
1 parent fccaa2a commit 2575fc5
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 0 deletions.
1 change: 1 addition & 0 deletions README.md
Expand Up @@ -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 |
Expand Down
20 changes: 20 additions & 0 deletions docker-compose/default.nix
@@ -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"
];
};
}
7 changes: 7 additions & 0 deletions overlay.nix
Expand Up @@ -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 {};
Expand Down

0 comments on commit 2575fc5

Please sign in to comment.