mkosi.images/job/ builds an OCI image with git, Node.js 26 and dnf, and the OS ships it in /usr, so it is signed and updated with the OS. gitea-runner.service loads it at boot instead of pulling Fedora, and JavaScript actions work without installing Node.js in each job. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
460bdbe380
commit
d1c7c55700
7 files changed
+43
-10
No files matched your search
@@ -9,6 +9,11 @@
|
||||
# - mkosi.prepare installs the runner, which Fedora doesn't package.
|
||||
# - mkosi.finalize keeps /etc in /usr/share/factory/etc.
|
||||
# - mkosi.version gives each build its version.
|
||||
# - mkosi.images/job/ builds the job image.
|
||||
|
||||
[Config]
|
||||
# Dependencies builds the job image first, so ExtraTrees= can copy it in.
|
||||
Dependencies=job
|
||||
|
||||
[Distribution]
|
||||
Distribution=fedora
|
||||
@@ -28,6 +33,7 @@ ManifestFormat=json
|
||||
# the name the runner registers with.
|
||||
# - WithDocs leaves out man pages. The image has no man to read them.
|
||||
# - Packages lists the packages installed into the image.
|
||||
# - ExtraTrees copies the job image (mkosi.images/job/) into /usr.
|
||||
# - UnifiedKernelImageFormat names the UKI runneros_<version>.efi, which
|
||||
# matches the MatchPattern= of mkosi.extra/usr/lib/sysupdate.d/20-uki.transfer.
|
||||
# - KernelCommandLine:
|
||||
@@ -70,6 +76,7 @@ Packages=
|
||||
curl
|
||||
procps-ng
|
||||
iproute
|
||||
ExtraTrees=%O/job:/usr/lib/runneros/job
|
||||
UnifiedKernelImageFormat=%i_%v
|
||||
KernelCommandLine=
|
||||
quiet
|
||||
|
||||
Reference in new issue
Block a user