Skip to content

Commit

Permalink
[#2795] Docker container cannot start because of invalid entrypoint
Browse files Browse the repository at this point in the history
  • Loading branch information
tdiesler authored and jbgi committed Jun 8, 2021
1 parent 8c14270 commit 647d00e
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions nix/docker.nix
Expand Up @@ -80,9 +80,11 @@ let
};
# Image with all iohk-nix network configs or utilizes a configuration volume mount
# To choose a network, use `-e NETWORK testnet`
clusterStatements = lib.concatStringsSep "\n" (lib.mapAttrsToList (env: scripts: ''
clusterStatements = lib.concatStringsSep "\n" (lib.mapAttrsToList (env: scripts: let
scriptBin = scripts.${script};
in ''
elif [[ "$NETWORK" == "${env}" ]]; then
exec ${scripts.${script}}
exec ${scriptBin}/bin/${scriptBin.name} $@
'') scripts);
nodeDockerImage = let
entry-point = writeScriptBin "entry-point" ''
Expand Down

0 comments on commit 647d00e

Please sign in to comment.