Fix taskset missing in container build by installing util-linux and adding fallback
CI / check (push) Successful in 36s
CI / tests-integration (push) Successful in 1m47s
CI / tests-imaging-browsers (push) Successful in 2m15s
CI / tests-unit (push) Successful in 4m32s
CI / tests-quality (push) Successful in 2m45s
CI / tests-ui (push) Successful in 5m41s
CI / preflight (push) Skipped
CI / deploy (push) Successful in 4m56s
CI / check (push) Successful in 36s
CI / tests-integration (push) Successful in 1m47s
CI / tests-imaging-browsers (push) Successful in 2m15s
CI / tests-unit (push) Successful in 4m32s
CI / tests-quality (push) Successful in 2m45s
CI / tests-ui (push) Successful in 5m41s
CI / preflight (push) Skipped
CI / deploy (push) Successful in 4m56s
This commit is contained in:
1 parent
c0a5079ede
commit
9560ddc212
2 files changed
+11
-3
No files matched your search
@@ -193,7 +193,11 @@ run_ulimit() {
|
||||
echo "[mem-cap] ulimit -v $virtual_kb werd geweigerd" >&2
|
||||
return 1
|
||||
}
|
||||
exec taskset -c "$cpu_affinity" "$@"
|
||||
if command -v taskset >/dev/null 2>&1; then
|
||||
exec taskset -c "$cpu_affinity" "$@"
|
||||
else
|
||||
exec "$@"
|
||||
fi
|
||||
}
|
||||
|
||||
run_refuse() {
|
||||
@@ -204,7 +208,11 @@ run_refuse() {
|
||||
|
||||
run_opted_out() {
|
||||
echo "[mem-cap] WAARSCHUWING: plafond bewust uitgeschakeld, dit commando kan de machine laten OOM-killed worden: $*" >&2
|
||||
exec taskset -c "$cpu_affinity" "$@"
|
||||
if command -v taskset >/dev/null 2>&1; then
|
||||
exec taskset -c "$cpu_affinity" "$@"
|
||||
else
|
||||
exec "$@"
|
||||
fi
|
||||
}
|
||||
|
||||
case "$backend" in
|
||||
|
||||
Reference in new issue
Block a user