Commit 7b2ae38c authored by Profpatsch's avatar Profpatsch

containers/helpers: factor out debugDockerImage

parent 02e4b70b
......@@ -21,6 +21,7 @@ let
genUtf8Localedb = ./helpers/gen-utf8-localedb.nix;
postgresTemplate = ./helpers/postgres-template.nix;
prependPrefix = ./helpers/prepend-prefix.nix;
debugDockerImage = ./helpers/debug-docker-image.nix;
};
})];
};
......
{ pkgs }:
# Make a generated docker image debuggable,
# by including bash and coreutils.
# `docker run -it <image>`
image:
pkgs.dockerTools.buildImage {
name = image.imageName;
tag = image.imageTag;
fromImage = image;
contents = [
pkgs.strace
pkgs.bash
pkgs.coreutils
pkgs.su-exec
];
inherit (image.buildArgs) config;
}
......@@ -56,23 +56,6 @@ in {
];
};
# Make a generated docker image debuggable,
# by including bash and coreutils.
# `docker run -it <image>`
debug = image: pkgs.dockerTools.buildImage {
name = image.imageName;
tag = image.imageTag;
fromImage = image;
contents = [
pkgs.strace
pkgs.bash
pkgs.coreutils
pkgs.su-exec
];
inherit (image.buildArgs) config;
};
image = pkgs.dockerTools.buildImage {
name = "sangha-rabbitmq";
tag = "unstable";
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment