ci(forgejo): give amd64 job containers the docker CLI
Dispatch of the rewired osint build (run 1363) reached the new login step and died with '/var/run/act/workflow/3: line 9: docker: command not found'. amd64.toml only set docker_host, which injects the socket bind but not a CLI, and the job image is node:20-bullseye (no docker). arm64.toml already solves this by bind-mounting the dind sidecar's own /usr/local/bin/docker and cli-plugins into the job container; do the same here and drop docker_host so the socket is not mounted twice. No --memory cap: this runner also carries the existing amd64 release builds, which were already uncapped.
This commit is contained in:
parent
318e633419
commit
a385a8a360
1 changed files with 12 additions and 1 deletions
|
|
@ -99,7 +99,18 @@ data:
|
||||||
dir: /data/cache
|
dir: /data/cache
|
||||||
container:
|
container:
|
||||||
privileged: true
|
privileged: true
|
||||||
docker_host: "unix:///var/run/docker.sock"
|
# No docker_host: it injects the socket bind into the job container,
|
||||||
|
# which collides with the explicit -v /var/run/docker.sock in options
|
||||||
|
# ("Duplicate mount point"). The options bind is the deliberate choice.
|
||||||
|
#
|
||||||
|
# The job image is node:20-bullseye, which ships no docker CLI, so the
|
||||||
|
# socket alone is not enough — `docker login`/`build`/`push` die with
|
||||||
|
# "docker: command not found". The CLI and cli-plugins come from the
|
||||||
|
# dind sidecar's own filesystem (docker:27-dind ships /usr/local/bin/
|
||||||
|
# docker, docker-buildx, docker-compose), same as arm64.toml.
|
||||||
|
# No --memory cap: this runner also carries the existing amd64 release
|
||||||
|
# builds, which were already uncapped.
|
||||||
|
options: -v /usr/local/bin/docker:/usr/bin/docker:ro -v /usr/local/libexec/docker/cli-plugins:/usr/local/lib/docker/cli-plugins:ro -v /var/run/docker.sock:/var/run/docker.sock
|
||||||
force_pull: true
|
force_pull: true
|
||||||
valid_volumes:
|
valid_volumes:
|
||||||
- "**"
|
- "**"
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue