Skip to content

Commit

Permalink
fix(examples): properly set command arguments in docker container
Browse files Browse the repository at this point in the history
  • Loading branch information
pulsastrix committed Feb 21, 2025
1 parent 29eace2 commit 139e9fd
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@
architecture = crossTargetContainer;
config = {
Cmd = ["sh" "-c" (lib.concatStringsSep " " (["/bin/${example_name}" ] ++ args))];
Env = [ "ICEFLOW_CONFIG_FILE=/data/${example_name}.yaml" "ICEFLOW_METRICS_FILE=/data/${example_name}.metrics" ];
Env = [ "ICEFLOW_CONFIG_FILE=/dag.json" ];
Volume = "/data";
};
};
Expand All @@ -106,19 +106,19 @@

docker-text2lines-cross = forEachSystem (crossTarget: genIceflowExampleCtrImage {
example_name = "text2lines";
args = ["$ICEFLOW_CONFIG_FILE" "$ICEFLOW_INPUT_FILE" "$ICEFLOW_METRICS_FILE"];
args = ["$ICEFLOW_CONFIG_FILE"];
crossTarget = crossTarget;
});

docker-lines2words-cross = forEachSystem (crossTarget: genIceflowExampleCtrImage {
example_name = "lines2words";
args = ["$ICEFLOW_CONFIG_FILE" "$ICEFLOW_METRICS_FILE"];
args = ["$ICEFLOW_CONFIG_FILE"];
crossTarget = crossTarget;
});

docker-wordcount-cross = forEachSystem (crossTarget: genIceflowExampleCtrImage {
example_name = "wordcount";
args = ["$ICEFLOW_CONFIG_FILE" "$ICEFLOW_METRICS_FILE"];
args = ["$ICEFLOW_CONFIG_FILE"];
crossTarget = crossTarget;
});

Expand Down

0 comments on commit 139e9fd

Please sign in to comment.