Skip to content

Commit

Permalink
docker: Run parallel by default
Browse files Browse the repository at this point in the history
[why]
When nothing is specified there is only one patcher running instead of
number-of-threads patchers. But we want the speedup as default.

[how]
Use `-j0`, although it has a small bug. We could also use `-j100%` but
then the output might confuse people even more?

Reported-by: nobk <nobk@noreply.github.com>
Signed-off-by: Fini Jastrow <ulf.fini.jastrow@desy.de>
  • Loading branch information
Finii committed Feb 5, 2024
1 parent 7ebbc4e commit 96497b4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bin/scripts/docker-entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ while [ "$#" -gt 0 ]; do
done

if [ -z "$PN" ]; then
PN=1
PN=0
fi

printf "Running with options:\n%s\nParallelism %s\n" "$args" "$PN"
Expand Down

0 comments on commit 96497b4

Please sign in to comment.