Skip to content

Commit

Permalink
fix(hydra): limit tmpfs to 100m
Browse files Browse the repository at this point in the history
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
  • Loading branch information
fruch committed Jan 6, 2025
1 parent 09fa6c1 commit f99ea30
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docker/env/hydra.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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}" \
Expand Down

0 comments on commit f99ea30

Please sign in to comment.