diff options
author | Matthias Beyer <matthias.beyer@ifm.com> | 2022-01-15 19:46:08 +0100 |
---|---|---|
committer | Matthias Beyer <matthias.beyer@ifm.com> | 2022-02-14 16:04:54 +0100 |
commit | 77ed1def62d97cd76b20dd7fef92e60a089b0a64 (patch) | |
tree | 1a682ecfee3a30d07b066cdb3dd17d0b232f7ade | |
parent | 973cdc9e8fd8b2ef0f211ba10a913f074214f8bc (diff) |
containers: Start process with "--debug" if containers are built for debugging
Signed-off-by: Matthias Beyer <matthias.beyer@ifm.com>
-rw-r--r-- | examples/containers.nix | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/examples/containers.nix b/examples/containers.nix index d5d01d31..62a67cf6 100644 --- a/examples/containers.nix +++ b/examples/containers.nix @@ -81,7 +81,8 @@ in { ''; config = { - Cmd = [ "/${packages.tedge-agent.pname}" ]; + Cmd = [ "/bin/${packages.tedge-agent.pname}" ] + ++ pkgs.lib.optionals container-debug ["--debug"]; }; }; @@ -102,7 +103,8 @@ in { ''; config = { - Cmd = [ "/${packages.tedge-mapper.pname}" ]; + Cmd = [ "/bin/${packages.tedge-mapper.pname}" ] + ++ pkgs.lib.optionals container-debug ["--debug"]; }; }; } |