runner-images/README.md

49 lines
2 KiB
Markdown

# ORINOCO Runner Image
A compact (Debian-based) tooling image for CI runners with a focus on [forgejo-aneksajo](https://codeberg.org/forgejo-aneksajo/forgejo-aneksajo) deployments.
It is a stripped-down derivative of [tom/act-runner](https://git.tomfos.tr/tom/act-runner).
It adds [git-annex](https://git-annex.branchable.com) added to the base image.
Outside a Python development stack, it relies own Debian packages rather than direct installations of upstream versions.
This image supplies tools for runner jobs, it does not install or start a Forgejo runner service.
## Available images
Built images are published in the [Orinoco Runner container package](https://hub.datalad.org/forgejo/-/packages/container/orinoco-runner). The currently available tags are
- `debian-latest`
- `debian-13`
```sh
podman pull hub.datalad.org/forgejo/orinoco-runner:<tag>
```
## Build
The image can be built with Podman or Docker. For example, using Podman:
```sh
podman build -f docker/debian.Dockerfile \
--build-arg DEBIAN_VERSION=13 \
--build-arg DEBIAN_TAG=stable \
-t orinoco-runner:debian-13 ./docker
```
The Dockerfile uses cache mounts, so use a builder that supports them.
`DEBIAN_TAG` defaults to `stable`; `DEBIAN_VERSION` must be provided.
## Included tooling
- **System and build tools:** Git, build-essential, curl, rsync, SSH client, compression utilities, and common system libraries
- **Containers:** Docker CLI, Docker Compose, and the `docker.io` package
- **Python:** Python 3, `uv`, and tools including `prek`, `ruff`, `mypy`, `pytest`, `black`, `isort`, and `hatch`
- **Git-annex:** installed as part of the `uv` tool layer
- **JavaScript tooling:** npm
The image sets `CI=true`, `DOCKER_BUILDKIT=1`, and `AGENT_TOOLSDIRECTORY=/opt/hostedtoolcache`.
Its working directory is `/tmp`.
## Docker access
The image includes Docker packages, but the Dockerfile does not configure a daemon or runner entrypoint.
Configure Docker access in your runner setup—for example, by providing an appropriate Docker socket or daemon to jobs that need it.