From ef09709c79dee7e16d3c70c0b9fe0801af7a8649 Mon Sep 17 00:00:00 2001 From: mudler Date: Thu, 29 Jun 2023 11:15:50 +0200 Subject: [PATCH] fix: split build threads from running threads This can be particularly problematic when running on kubernetes where CPU limits can kill the pod. Signed-off-by: mudler --- entrypoint.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/entrypoint.sh b/entrypoint.sh index eaffed98..2bd8d022 100755 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -5,7 +5,7 @@ cd /build if [ "$REBUILD" != "false" ]; then rm -rf ./local-ai - ESPEAK_DATA=/build/lib/Linux-$(uname -m)/piper_phonemize/lib/espeak-ng-data make build -j${THREADS:-1} + ESPEAK_DATA=/build/lib/Linux-$(uname -m)/piper_phonemize/lib/espeak-ng-data make build -j${BUILD_PARALLELISM:-1} fi ./local-ai "$@"