Fix taskset missing in container build by installing util-linux and adding fallback
CI / check (push) Successful in 50s
CI / tests-integration (push) Successful in 1m53s
CI / tests-quality (push) Successful in 55s
CI / tests-unit (push) Successful in 4m18s
CI / tests-imaging-browsers (push) Successful in 2m8s
CI / tests-ui (push) Successful in 5m6s
CI / preflight (push) Skipped
CI / deploy (push) Successful in 4m15s

This commit is contained in:
openhands committed 2026-10-23 21:15:29 +02:00
1 parent c0a5079ede
commit 9560ddc212
2 files changed
+11 -3

No files matched your search

+1 -1
View File
@@ -14,7 +14,7 @@ ENV NEXT_TELEMETRY_DISABLED=1
# en wordt de gedownloade pnpm-binary ook in de runtime-image bewaard. # en wordt de gedownloade pnpm-binary ook in de runtime-image bewaard.
RUN --mount=type=cache,target=/var/cache/apk \ RUN --mount=type=cache,target=/var/cache/apk \
--mount=type=cache,target=/root/.npm \ --mount=type=cache,target=/root/.npm \
apk add --no-cache git bash \ apk add --no-cache git bash util-linux \
&& npm install -g [email protected] \ && npm install -g [email protected] \
&& corepack enable pnpm && corepack enable pnpm
+10 -2
View File
@@ -193,7 +193,11 @@ run_ulimit() {
echo "[mem-cap] ulimit -v $virtual_kb werd geweigerd" >&2 echo "[mem-cap] ulimit -v $virtual_kb werd geweigerd" >&2
return 1 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() { run_refuse() {
@@ -204,7 +208,11 @@ run_refuse() {
run_opted_out() { run_opted_out() {
echo "[mem-cap] WAARSCHUWING: plafond bewust uitgeschakeld, dit commando kan de machine laten OOM-killed worden: $*" >&2 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 case "$backend" in