ci: docker CLI image for build job (+ runner automount needed) #10

Merged
necrogami merged 1 commit from fix/ci-docker-cli into main 2026-08-06 16:41:42 +00:00
Contributor

Run #48 (the post-merge build on main) failed at the registry login step with docker: command not found: the runner's docker label starts jobs in node:20-bookworm, which has no docker CLI.

This switches the build job's container to catthehacker/ubuntu:act-latest (node + git + docker CLI preinstalled — the standard act-ecosystem image; ~1 GB pull, cached on the runner after the first run).

⚠️ Also requires a one-time runner config change

The CLI still needs to reach a docker daemon. Per the Forgejo docs, the runner's default docker_host: "-" does NOT share its docker socket with job containers. On the runner host, edit the runner's config.yml:

container:
  docker_host: "automount"

then restart forgejo-runner. (Docs note automount trades isolation for simplicity — reasonable for a single-user instance; the alternative is a privileged docker-in-docker service.)

Without that change this PR's build job will get "Cannot connect to the Docker daemon" instead — the test job on this PR will still pass either way, since the docker steps only run on push to main.

https://claude.ai/code/session_01RaLHHSp1qSk9L1oswRD8GJ

Run #48 (the post-merge build on main) failed at the registry login step with `docker: command not found`: the runner's `docker` label starts jobs in `node:20-bookworm`, which has no docker CLI. This switches the build job's container to `catthehacker/ubuntu:act-latest` (node + git + docker CLI preinstalled — the standard act-ecosystem image; ~1 GB pull, cached on the runner after the first run). ## ⚠️ Also requires a one-time runner config change The CLI still needs to reach a docker daemon. Per the Forgejo docs, the runner's default `docker_host: "-"` does NOT share its docker socket with job containers. On the runner host, edit the runner's `config.yml`: ```yaml container: docker_host: "automount" ``` then restart forgejo-runner. (Docs note automount trades isolation for simplicity — reasonable for a single-user instance; the alternative is a privileged docker-in-docker service.) Without that change this PR's build job will get "Cannot connect to the Docker daemon" instead — the test job on this PR will still pass either way, since the docker steps only run on push to main. https://claude.ai/code/session_01RaLHHSp1qSk9L1oswRD8GJ
ci: give build job a docker-cli image
All checks were successful
build-and-publish / test (pull_request) Successful in 17s
build-and-publish / build (pull_request) Has been skipped
ff70497224
Run #48 failed with 'docker: command not found' — the runner's default job
container (node:20-bookworm) has no docker CLI. Use
catthehacker/ubuntu:act-latest (node + git + docker CLI) for the build job.

Requires the runner's config.yml to share the docker socket with job
containers: container.docker_host: "automount" (default '-' does not).

Claude-Session: https://claude.ai/code/session_01RaLHHSp1qSk9L1oswRD8GJ
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
og_arist0tle/dark-spire!10
No description provided.