From 9a73120e1e4069826217ef25daae50618dc509f0 Mon Sep 17 00:00:00 2001 From: Israel Fruchter Date: Sun, 5 Jan 2025 16:44:15 +0200 Subject: [PATCH] fix(hydra): limit tmpfs to 100m since we are might be running multiple hydra commands on the same jenkins builder, and we are running into those kind of error: ``` docker: Error response from daemon: failed to create task for container: failed to create shim task: OCI runtime create failed: runc create failed: unable to start container process: error during container init: error mounting "tmpfs" to rootfs at "/home/jenkins/.local": create mountpoint for /home/jenkins/.local mount: mkdirat /var/lib/docker/.../.local: file exists: unknown. ``` we are trying to limit the memory to try to avoid this issue Fixes: #9645 --- docker/env/hydra.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docker/env/hydra.sh b/docker/env/hydra.sh index 6a528b7033..852fb1a7f3 100755 --- a/docker/env/hydra.sh +++ b/docker/env/hydra.sh @@ -259,7 +259,7 @@ function run_in_docker () { -v /tmp:/tmp \ -v /var/tmp:/var/tmp \ -v "${HOME_DIR}:${HOME_DIR}" \ - --tmpfs "${HOME_DIR}/.local:exec,uid=$(id -u ${USER}),gid=$(id -g ${USER})" \ + --tmpfs "${HOME_DIR}/.local:exec,uid=$(id -u ${USER}),gid=$(id -g ${USER}),size=256m" \ -w "${SCT_DIR}" \ -e JOB_NAME="${JOB_NAME}" \ -e BUILD_URL="${BUILD_URL}" \