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.

Keep procedure code blocks at the left margin

6d574becea8dcf72139479270da7c417ec5330de · Keenan Nemetz · 20d ago · parent a0172426

Keep procedure code blocks at the left margin

The site builds with Python-Markdown's fenced_code extension, which only
recognizes a fence that starts at column 0. Four pages nested a fenced block
under an ordered list item instead, so the fence was parsed as inline code and
the page showed the language token and the commands joined into one pill:
`sh vole workflow check vole workflow list`.

Number each affected procedure's steps with headings, the idiom quickstart.md
already uses, and keep the fence at the left margin. The prose that followed a
block stays with its step. DEVELOPMENT.md now records the constraint, because
the Markdown is valid CommonMark and renders correctly through the forge's
goldmark, which is why nothing caught it before.

Refs: 01M7BHJX0D3HBF01Y04YZM8GYB

docs/deploy/runner.md +32−31

@@ -13,37 +13,38 @@ instructions install the same Vole package as the server but enable only
13 13
14 14 From a Vole source checkout on your computer:
15 15
16 1. Render the runner's first-boot configuration:
17
18 ```sh
19 cd deploy/cloud-init
20 FORGE_HOST=forge.example.com \
21 VOLE_PACKAGE_URL=https://rodent.software/vole/releases/v0.2.0/artifacts/vole_0.2.0-1_amd64.deb \
22 ./render.sh runner > runner-user-data.yaml
23 ```
24
25 `render.sh` requires `envsubst`, provided by `gettext-base` on Debian and
26 Ubuntu or `gettext` on other distributions. Inspect the rendered file before
27 using it.
28
29 2. Create a machine with your provider and paste `runner-user-data.yaml` into its
30 user-data or cloud-config field. Use the same Ubuntu or Debian image and
31 package architecture. Allow inbound shell SSH on port 22 only from your
32 addresses; the runner makes outbound connections to the forge and container
33 registries.
34
35 Size memory for `RUNNER_JOBS × RUNNER_MEMORY`. Leave additional room for the
36 runner and host, and size disk for saved checkouts, caches, and OCI images.
37
38 3. Wait for first boot to finish. Setup output is in
39 `/var/log/vole-runner-first-boot.log` on the runner. The configuration creates
40 an unprivileged `ci-runner` user, installs rootless Podman, generates the
41 runner's SSH key, pins the forge's host key, and enables the service.
42
43 First boot pins the first host key returned by `ssh-keyscan`. Before allowing
44 production jobs, compare `/etc/vole/runner_known_hosts` with the forge's host
45 key fingerprint through a trusted channel. Replace the file if it does not
46 match.
16 ### 1. Render the runner's first-boot configuration
17
18 ```sh
19 cd deploy/cloud-init
20 FORGE_HOST=forge.example.com \
21 VOLE_PACKAGE_URL=https://rodent.software/vole/releases/v0.2.0/artifacts/vole_0.2.0-1_amd64.deb \
22 ./render.sh runner > runner-user-data.yaml
23 ```
24
25 `render.sh` requires `envsubst`, provided by `gettext-base` on Debian and Ubuntu
26 or `gettext` on other distributions. Inspect the rendered file before using it.
27
28 ### 2. Create the machine
29
30 Create a machine with your provider and paste `runner-user-data.yaml` into its
31 user-data or cloud-config field. Use the same Ubuntu or Debian image and package
32 architecture. Allow inbound shell SSH on port 22 only from your addresses; the
33 runner makes outbound connections to the forge and container registries.
34
35 Size memory for `RUNNER_JOBS × RUNNER_MEMORY`. Leave additional room for the
36 runner and host, and size disk for saved checkouts, caches, and OCI images.
37
38 ### 3. Wait for first boot
39
40 Setup output is in `/var/log/vole-runner-first-boot.log` on the runner. The
41 configuration creates an unprivileged `ci-runner` user, installs rootless Podman,
42 generates the runner's SSH key, pins the forge's host key, and enables the
43 service.
44
45 First boot pins the first host key returned by `ssh-keyscan`. Before allowing
46 production jobs, compare `/etc/vole/runner_known_hosts` with the forge's host key
47 fingerprint through a trusted channel. Replace the file if it does not match.
47 48
48 49 ### Runner cloud-init settings
49 50