Sign in

Search issue titles and bodies, change requests and comments. Private repositories you cannot read are not included.

vole
Site
Clone

Read only, no credentials:

https://rodent.software/vole.git

Write over SSH with a registered key:

git clone ssh://git@rodent.software/vole.git

Self-hosted forge that lives in your Git repo.

Rebuild the docs as a MkDocs site

1f8afe73515d58c14774878f30f33bfe318d0c3b · Keenan Nemetz · 21d ago · parent 7c02af12

Rebuild the docs as a MkDocs site

Replace the mdBook configuration with MkDocs and a local theme that uses
Vole's Everforest dark/medium palette. Move the contents order into nav,
make docs/index.md the homepage, and carry the install, quickstart,
deployment, and reference pages into the new tree.

Add the docs build to verify, with pinned requirements and python3-venv in
the image, so a broken nav entry or theme asset fails before a pages
deploy.

docs/runner.md +26−34

@@ -171,15 +171,32 @@ options, which come first.
171 171
172 172 ## Images and image builds
173 173
174 An `image-file` definition is built by the configured runtime, so a rootless
175 Podman runner builds rootless. The build runs with the runtime's own network
176 (bridge by default), because the base image and any `run:` commands need to fetch
177 packages; if builds should have no network, preload the base image and set the
178 runtime's default network to none on that host. The definition is pinned by its
179 digest — the runner receives the definition text and digest with the job, tags the
180 built image by that digest, and reuses it — so a definition that changes after a
181 job is queued is not the one that was reviewed. Pin the base image in `from:` by
182 digest (`image@sha256:...`) when you need the build itself to be reproducible.
174 Every job names its image in the workflow. A registry reference is used as
175 written; an `image-file` definition is built locally first. The definition fields
176 are described in the [Image reference](reference/image-reference.md).
177
178 For a custom definition, the runner receives the pinned definition text and its
179 digest from the queue, so it cannot build a definition that changed after the job
180 was queued. It renders the definition to a Dockerfile, builds it with the
181 configured OCI runtime — so a rootless Podman runner builds rootless — and tags
182 the result by the definition digest. A later job with the same definition reuses
183 that tag.
184
185 With `--jobs`, jobs that name the same definition build it once: a job whose image
186 another job is already building waits for that build, saying so at the top of its
187 log, and keeps its lease alive while it waits. If the build fails, the jobs waiting
188 on it fail with the same reason.
189
190 The image build uses the runtime's own default network (bridge), because the base
191 image and any `run:` commands need to fetch packages. If builds should have no
192 network, preload the base image and set the runtime's default network to none on
193 that host. The job's own network request applies to the job container, not to the
194 build.
195
196 An image definition is code. Its build runs on the runner through the OCI
197 builder, so approving a contributor tip that changes a definition also approves
198 that build. Prefer rootless Podman, and pin the base image in `from:` by digest
199 (`image@sha256:...`) when you need the build itself to be reproducible.
183 200
184 201 ## What a job may name
185 202
@@ -232,31 +249,6 @@ instance or kept on the runner, so each of those channels has a bound:
232 249 notices — rather than a hard bound; for one of those, put `--dir` on its own
233 250 filesystem and size that. The unit's `MemoryMax` is the same idea for RAM.
234 251
235 ## Images and image builds
236
237 Every job names its image in the workflow. A registry reference is used as
238 written; an `image-file` definition is built locally first. The definition fields
239 are described in the [Image reference](reference/image-reference.md).
240
241 For a custom definition, the runner receives the pinned definition text and its
242 digest from the queue, so it cannot build a definition that changed after the job
243 was queued. It renders the definition to a Dockerfile, builds it with the
244 configured OCI runtime, and tags the result by the definition digest. A later job
245 with the same definition reuses that tag.
246
247 With `--jobs`, jobs that name the same definition build it once: a job whose image
248 another job is already building waits for that build, saying so at the top of its
249 log, and keeps its lease alive while it waits. If the build fails, the jobs waiting
250 on it fail with the same reason.
251
252 The image build uses the runtime's own default network, so a base image and its
253 `run:` commands can fetch packages. The job's own network request applies to the job
254 container, not to the build.
255
256 An image definition is code. Its build runs on the runner through the OCI
257 builder, so approving a contributor tip that changes a definition also approves
258 that build. Prefer rootless Podman, and pin the base image by digest.
259
260 252 ## How a job runs
261 253
262 254 One container is created for the job, plus one for each service the job declares;