detached dddf7ab

build(image): a python command for shell: python; contrib: systemd unit

commit
dddf7abb46f5a0903cf325b7b5371ecc607554be
author
brice · · 2026-10-12 18:55 UTC
parent
35d0c10
signature
GPG VerifiedCD88F9E564E0102646FB6077A1A07C7C7C3E349D · arch-gpg Verified for the committer email
2 files · +41 -1
A contrib/ermite-runner.service +40 -0
@@ -0,0 +1,40 @@
1+# SPDX-License-Identifier: MIT
2+#
3+# systemd unit of the ermite runner. Install the static binary as
4+# /usr/local/bin/ermite-runner, write the settings to
5+# /etc/ermite-runner/env (mode 0600) and register the runner once:
6+#
7+# sudo systemd-run --pipe --wait -p EnvironmentFile=/etc/ermite-runner/env \
8+# /usr/local/bin/ermite-runner register --token <runner:register token>
9+#
10+# The runner runs as root: it creates TAP devices and firewall rules (vm), loop
11+# mounts (container), and starts the jailer or containers. Jobs never run as
12+# root on the host; they run in a micro-VM or a container as user "runner".
13+[Unit]
14+Description=ermite CI runner
15+Documentation=https://git.bnema.dev/bnema/ermite-runner
16+Wants=network-online.target
17+After=network-online.target docker.service
18+
19+[Service]
20+Type=simple
21+EnvironmentFile=/etc/ermite-runner/env
22+ExecStart=/usr/local/bin/ermite-runner run
23+Restart=on-failure
24+RestartSec=5
25+# SIGTERM cancels the running jobs with runner_shutdown, reports them and
26+# removes their sandboxes; give that time before systemd sends SIGKILL.
27+KillMode=mixed
28+KillSignal=SIGTERM
29+TimeoutStopSec=120
30+# The state directory holds the runner token (0600) and the VM images.
31+StateDirectory=ermite-runner
32+StateDirectoryMode=0700
33+RuntimeDirectory=ermite-runner
34+# Jobs are many processes: do not let systemd's default task limit stop them.
35+TasksMax=infinity
36+LimitNOFILE=1048576
37+Delegate=yes
38+
39+[Install]
40+WantedBy=multi-user.target
@@ -0,0 +1,40 @@
1+# SPDX-License-Identifier: MIT
2+#
3+# systemd unit of the ermite runner. Install the static binary as
4+# /usr/local/bin/ermite-runner, write the settings to
5+# /etc/ermite-runner/env (mode 0600) and register the runner once:
6+#
7+# sudo systemd-run --pipe --wait -p EnvironmentFile=/etc/ermite-runner/env \
8+# /usr/local/bin/ermite-runner register --token <runner:register token>
9+#
10+# The runner runs as root: it creates TAP devices and firewall rules (vm), loop
11+# mounts (container), and starts the jailer or containers. Jobs never run as
12+# root on the host; they run in a micro-VM or a container as user "runner".
13+[Unit]
14+Description=ermite CI runner
15+Documentation=https://git.bnema.dev/bnema/ermite-runner
16+Wants=network-online.target
17+After=network-online.target docker.service
18+
19+[Service]
20+Type=simple
21+EnvironmentFile=/etc/ermite-runner/env
22+ExecStart=/usr/local/bin/ermite-runner run
23+Restart=on-failure
24+RestartSec=5
25+# SIGTERM cancels the running jobs with runner_shutdown, reports them and
26+# removes their sandboxes; give that time before systemd sends SIGKILL.
27+KillMode=mixed
28+KillSignal=SIGTERM
29+TimeoutStopSec=120
30+# The state directory holds the runner token (0600) and the VM images.
31+StateDirectory=ermite-runner
32+StateDirectoryMode=0700
33+RuntimeDirectory=ermite-runner
34+# Jobs are many processes: do not let systemd's default task limit stop them.
35+TasksMax=infinity
36+LimitNOFILE=1048576
37+Delegate=yes
38+
39+[Install]
40+WantedBy=multi-user.target
M images/ubuntu-24.04/Dockerfile +1 -1
@@ -12,7 +12,7 @@ ARG DEBIAN_FRONTEND=noninteractive
1212 RUN apt-get update \
1313 && apt-get install -y --no-install-recommends \
1414 bash build-essential ca-certificates curl e2fsprogs git gnupg iproute2 \
15- iptables jq kmod procps python3 sudo tzdata unzip xz-utils zip \
15+ iptables jq kmod procps python-is-python3 python3 sudo tzdata unzip xz-utils zip \
1616 && rm -rf /var/lib/apt/lists/*
1717
1818 # Docker Engine from Docker's apt repository (the job gets its own daemon).
@@ -12,7 +12,7 @@ ARG DEBIAN_FRONTEND=noninteractive
12 RUN apt-get update \12 RUN apt-get update \
13 && apt-get install -y --no-install-recommends \13 && apt-get install -y --no-install-recommends \
14 bash build-essential ca-certificates curl e2fsprogs git gnupg iproute2 \14 bash build-essential ca-certificates curl e2fsprogs git gnupg iproute2 \
15- iptables jq kmod procps python3 sudo tzdata unzip xz-utils zip \15+ iptables jq kmod procps python-is-python3 python3 sudo tzdata unzip xz-utils zip \
16 && rm -rf /var/lib/apt/lists/*16 && rm -rf /var/lib/apt/lists/*
17 17
18 # Docker Engine from Docker's apt repository (the job gets its own daemon).18 # Docker Engine from Docker's apt repository (the job gets its own daemon).

Keyboard shortcuts

Single-key shortcuts are on. ctrl k and esc work whatever this says.

ctrl k :
go to a section, branch, tag, file or repository
?
this list
j k
move the row cursor down / up
enter
open the row under the cursor; on Files, a directory opens or closes in place
↑ ↓ ← → home end
in the file tree (focus on a row): previous / next row, close / open a directory or go to its parent / first entry, first / last row. They never open a file
l h
on Files: open a directory or a file / close a directory or go up to its parent, then to the parent page. Elsewhere: into the side panel (on a merge request, its files) / back to the content; there j k move between its controls
g g G
first / last row
/
filter the list; on Files, find a file anywhere in the repository (esc clears, enter opens the best match)
b
switch branch or tag
g s g f g c g b g m g i g r g a
tabs: summary, files, commits, branches & tags, merge requests, issues, releases, actions (when available)
g h
home
w
wide mode: use the whole width of the screen, or not (remembered)
y
copy a permalink pinned to the commit
d u x
diff: split / unified / collapse or expand all
e E
diff: the whole file in view / every file, with the lines the hunks hide
n
merge request: next note in the diff
esc
close a dialog, leave a field

Branches 4

Tags 11

↑↓ moveenter openesc close