Skip to content

Commit

Permalink
Merge pull request #1079 from morucci/1078
Browse files Browse the repository at this point in the history
docker - healthcheck assumes /bin/sh
  • Loading branch information
morucci authored Nov 2, 2023
2 parents 8e7fb0c + a85f188 commit d775a2f
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion nix/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -479,10 +479,14 @@ in rec {

# Ensure the home directory is r/w for any uid
rwHome = "mkdir -p -m 1777 ${home}";

# Ensure /bin/sh (docker healthcheck assumes /bin/sh)
binSh = "ln -s usr/bin/sh bin/sh";

in pkgs.dockerTools.buildLayeredImage {
name = "quay.io/change-metrics/monocle-exe";
contents = [ monocle-wrapper ];
extraCommands = "${createPasswd} && ${rwHome}";
extraCommands = "${createPasswd} && ${rwHome} && ${binSh}";
tag = "latest";
created = "now";
config = {
Expand Down

0 comments on commit d775a2f

Please sign in to comment.