The language runtime images of RunR, the scripts that build,
smoke-test and publish them, and the mirror of the third-party images RunR uses. GitHub Actions
builds every image here and publishes it to ghcr.io/brf-tech/runr/, under the same names and tags
as before the images moved out of the RunR repository. Existing installs and the API's runtime
discovery need no change. The manifests of the runtimes are also published here as a signed
runtime catalog, so a new runtime reaches RunR installations without a
RunR release.
RunR itself (the API, console, Helm chart, region agent, queue consumer, supply-chain and
image-upload images, the Spin shim and the end-to-end harness) stays in
BRF-Tech/runr. Its Kind tests pull the images published here,
at the tags pinned in its runtime/lib/runtime-images.sh.
| Image | Tags | Platforms | Source |
|---|---|---|---|
exec-python |
<major.minor> of every Python release that is not end-of-life, from 3.10 (today 3.10–3.15) |
amd64, arm64 | runtimes/python/ |
exec-nodejs |
<major.minor>: the latest minor of every even (LTS) Node.js major from 20 |
amd64, arm64 | runtimes/nodejs/ |
exec-go |
<major.minor> from 1.22, without end-of-life releases |
amd64, arm64 | runtimes/go/ |
exec-php |
<major.minor> from 8.2, without end-of-life releases |
amd64, arm64 | runtimes/php/ |
exec-java |
<major>.0 of every Eclipse Temurin LTS major from 21 that is not end-of-life (today 21.0 and 25.0) |
amd64, arm64 | runtimes/java/ |
exec-dotnet |
<major.minor> of every released .NET from 10.0, without end-of-life releases (today 10.0) |
amd64, arm64 | runtimes/dotnet/ |
exec-ruby |
<major.minor> from 3.3, without end-of-life releases (today 3.3, 3.4 and 4.0) |
amd64, arm64 | runtimes/ruby/ |
exec-bun |
<major.minor>: the newest minor of every Bun major (today 1.4) |
amd64, arm64 | runtimes/bun/ |
exec-pytorch |
<X.Y> (CPU) and <X.Y>-gpu (CUDA 12.6); X.Y is the torch pin's major.minor (requirements-torch.txt) |
amd64 | runtimes/pytorch/ |
exec-tensorflow |
<X.Y> (CPU) and <X.Y>-gpu (CUDA); X.Y is the tensorflow-cpu pin's major.minor (requirements-cpu.txt) |
amd64 | runtimes/tensorflow/ |
exec-wasm-rust, exec-wasm-go, exec-wasm-js, exec-wasm-python, exec-wasm-exec |
every version of the runtime's runtime.yaml: 4.1 of all five, 4.2 of rust and js (WebAssembly versions) |
amd64, arm64 | runtimes/wasm-*/, a version with a directory of its own from runtimes/wasm-*/<version>/ |
wrapper |
the version of the binary (const version in wrapper/main.go, today 1.1.0) |
amd64, arm64 | wrapper/ |
hf-serve |
<version> (CPU) and <version>-cuda; the version is __version__ of runr_hf_serve (today 1.1.1) |
CPU: amd64, arm64; CUDA: amd64 | hf-serve/ |
reqs/* |
mirrored third-party images (lib/mirror.sh) |
as upstream | lib/mirror.sh |
All names are under ghcr.io/brf-tech/runr/, for example ghcr.io/brf-tech/runr/exec-python:3.12.
The language runtimes also carry an immutable patch tag for every build they published
(exec-php:8.3.36-r1, the newest five per version): see
Patches and the patch feed.
Every image built here carries the label
org.opencontainers.image.source=https://github.com/BRF-Tech/runr-runtimes.
What the images are:
- Language runtimes (
exec-python,exec-nodejs,exec-go,exec-php,exec-java,exec-dotnet,exec-ruby,exec-bun): the image of a function. Each serves RunR's HTTP contract itself (the language's handler server inruntimes/<runtime>/) and runs a scheduled invocation once withRUNR_MODE=schedule. User code is mounted at/app/code. The compiled languages build every function into an image of its own: Go and .NET (exec-dotnetis the .NET SDK, the function runs as a self-contained application on Microsoft's chiseledruntime-depsimage), and Java (exec-javais the JDK with Maven, and the function's image isexec-javaplus its classes). The images run as a user that is not root (runr, 10001; .NET:app, 1654), and RunR's function build runs as that user too:/buildbelongs to it. - ML runtimes (
exec-pytorch,exec-tensorflow): Python 3.12 with the framework and the ML essentials preinstalled, on the Python runtime's handler server. The-gpuimages carry the CUDA builds of the frameworks. - WebAssembly build images (
exec-wasm-*): the toolchains RunR's build Jobs compile functions with (Rust, TinyGo, JavaScript, Python, and wasi-sdk / Zig / TinyGo forwasm-exec), with the Spin CLI (one release in every image). They are never deployed as functions. - wrapper (
runr-wrapper): the universal wrapper, a static binary that is PID 1 ofexecandpersistentruntimes. Init containers copy it into a pod or a build context. - hf-serve: RunR's serving engine for model services on the
transformersanddiffusersengines. The CPU image serves transformers pipelines; the CUDA image adds CUDA PyTorch and diffusers (text-to-image).
A version of a WebAssembly runtime is a build image with its SDK generation. When an SDK's new major changes the code functions are written in, it comes as a new version next to the old one, so the projects of the old one keep building:
| Runtime | 4.1 (runtimes/wasm-<lang>/) |
4.2 (runtimes/wasm-<lang>/4.2/, the default of new projects) |
|---|---|---|
wasm-rust |
Spin Rust SDK 5.2, wasm32-wasip1 |
Spin Rust SDK 8, wasm32-wasip2 (async, WASIp3) |
wasm-js |
esbuild 0.25 | esbuild 0.28 |
wasm-go, wasm-python and wasm-exec have 4.1 only (their default). The Spin Go SDK v4 builds
with componentize-go, which needs WASIp3 support in Go itself: until a Go release has it
(golang/go#76775) it would mean a patched Go of a
personal fork in the image, so wasm-go 4.2 waits for that release.
A version with a directory of its own (runtimes/wasm-<lang>/<version>/: Dockerfile, its default
build files and prewarm) is built from it by ci.sh wasm, the others from runtimes/wasm-<lang>/.
In runtime.yaml the version names its own starter and build files (versions[].template,
versions[].build.files with @4.2/… references: RunR 0.7.0 or later reads them). The language
bot moves an ARG in every version's Dockerfile, and every image keeps one Spin CLI
(test/catalog_test.sh).
Each runtimes/<id>/runtime.yaml is the manifest of a built-in runtime of RunR's catalog. It
defines the handler, the starter code, the build and the versions (for the language and ML
runtimes, the tags of the image above). RunR installations read these manifests from the signed
runtime catalog this repository publishes, so a new or changed runtime
reaches them without a RunR release.
A RunR release also ships a copy of the catalog, api/resources/runtimes/builtin.json. To update
that copy after you change a manifest or a file it references with @file, regenerate it in a
checkout of BRF-Tech/runr:
cd runr/api
RUNR_RUNTIME_CATALOG=../../runr-runtimes/runtimes php artisan runtimes:bundleThe CI workflow validates the manifests against RunR's runtime schema and builds the runtime
catalog from them. test/catalog_test.sh checks that the files and image tags they reference are
here.
To bring a language to RunR from a repository of your own (public or private) rather than this one, start from the sample executor repository BRF-Tech/runr-sample-custom-executor and RunR's guide docs/executor-development.md.
| Path | Contents |
|---|---|
runtimes/<id>/ |
The 15 built-in runtimes: runtime.yaml, Dockerfile, handler server or toolchain files. They stay together in one directory because the API's runtimes:bundle reads */runtime.yaml of one directory. |
wrapper/ |
runr-wrapper (Go) and its tests |
hf-serve/ |
hf-serve (Python), its CPU and CUDA Dockerfiles and its tests |
ci.sh, lib/ |
Build, smoke-test, push, patch, patch feed, runtime catalog, mirror and EOL commands |
test/ |
Shell tests of ci.sh, run without Docker or a registry |
ci/ |
check-dockerfiles.sh, check-reqs-mirror.sh, fetch.sh (the workflows' pinned downloads, retried), images.sh (the image selection of the workflows), lang-bot.sh (the language bot), weekly.sh and weekly.jq (its weekly issue) |
schema/ |
The JSON Schemas of the patch feed (patch-feed.v1.json) and the runtime catalog (runtime-catalog.v1.json), an example of each |
keys/ |
patch-feed.pub, the public key of the signatures of the patch feed and the runtime catalog |
.github/workflows/ |
CI, publish, patch, platform release, heavy GPU images, reqs mirror, the language bot (language releases, language tests) |
.github/actions/ |
patch-feed-tools: oras, cosign, check-jsonschema and PyYAML for the feed and catalog jobs |
PACKAGES.md |
The GHCR packages this repository writes to, and the access each one needs |
You need bash, Docker with buildx, and curl. mirror-* also needs
crane.
./ci.sh build python # exec-python, every current version, built and smoke-tested ./ci.sh build java dotnet # exec-java and exec-dotnet ./ci.sh build # all eight language runtimes ./ci.sh wrapper # wrapper:<version> ./ci.sh wasm rust js # two WebAssembly build images (all five without a name) ./ci.sh ml-runtimes pytorch cpu # exec-pytorch:<X.Y> (pytorch|tensorflow, cpu|gpu) ./ci.sh ml-runtimes --list # the ML image references, nothing built ./ci.sh hf-serve cpu # hf-serve:<version> (cpu|cuda) ./ci.sh mirror-reqs --dry-run # what the mirror would copy ./ci.sh eol # EOL report of the published exec-* tags ./ci.sh watch # the upstream releases the images do not follow yet ./ci.sh patch php --level zero-day --reason-en "…" --reason-tr "…" # dry run of a patch ./ci.sh feed show # the current patch feed ./ci.sh feed update # what the next feed update would publish and delete ./ci.sh catalog build # the runtime catalog of runtimes/, checked (--out FILE writes it) ./ci.sh catalog publish # what the next catalog publish would change ./ci.sh help
patch, feed and catalog also need jq; catalog also needs python3 with
PyYAML. Publishing the feed or the catalog (--push) needs
oras, cosign and
check-jsonschema.
How every build behaves:
- Pulls its base images (
--pull). Base images come from the reqs mirror (ghcr.io/brf-tech/runr/reqs/…), never from Docker Hub (ci/check-dockerfiles.sh). - Retries its downloads. Every
curlof a Dockerfile'sRUNstep retries every error 5 times, 10 s apart (ci/check-dockerfiles.shrefuses one that does not), and the WebAssembly images'downloadtakes a GitHub release asset thatreleases/downloaddoes not give (a 504 for minutes) through the GitHub API's asset endpoint; the checksums stay pinned. The workflows install their tools the same way (ci/fetch.sh URL OUT SHA256,lib/fetch.sh). - Is smoke-tested after it is built (
lib/smoke.sh; the ML runtimes:lib/build-ml.sh).--no-smokeskips this for local builds.- A language runtime answers a handler over HTTP, called from a curl container in its network
namespace, and runs it once with
RUNR_MODE=schedule. The language version must match the tag. - The ML runtimes run tensor operations through the same two paths.
- The wrapper must print its tag's version.
- The WebAssembly images must carry the Spin CLI their Dockerfile pins.
- hf-serve must print its version and import its server with torch and transformers. The CUDA image must also have a CUDA build of torch and diffusers.
- A
-gpuor-cudaimage runs on the GPU whendocker run --gpus allgives it one. Otherwise only its CUDA build is checked, and the output says the GPU check was skipped (ML_SMOKE_GPU).
- A language runtime answers a handler over HTTP, called from a curl container in its network
namespace, and runs it once with
--pushpushes only after every image of the command passed its smoke test. The language runtimes are pushed as patches: see Patches and the patch feed.- Multi-arch images are built again for
PLATFORMS(defaultlinux/amd64,linux/arm64) inci.sh's own docker-container buildx builder (BUILDER_NAME, defaultrunr-multiarch). That builder never becomes the host's current builder and is removed after the push. - The amd64-only images (ML runtimes, hf-serve CUDA) are pushed exactly as tested:
docker pushof the same image ID. --push --no-smokeis refused.
- Multi-arch images are built again for
A local build tags the image with its published name. To test an unpublished change in RunR's Kind
harness, build it here, then run the harness with RUNTIME_IMAGES_LOCAL=1. It then uses the local
image instead of pulling the published one (see runtime/lib/runtime-images.sh in BRF-Tech/runr).
Every workflow pushes with its own GITHUB_TOKEN (permissions: packages: write); there is no
personal token or bot account. Each existing package must grant this repository write access
first: see PACKAGES.md. The patch feed and the runtime catalog are signed with a
key of the repository's Actions secrets (PACKAGES.md).
| Workflow | When | What |
|---|---|---|
ci.yml (CI) |
pull requests, pushes to other branches | shellcheck, actionlint, the shell tests, check-dockerfiles.sh, check-reqs-mirror.sh, the wrapper's Go tests, hf-serve's pytest, the manifests against RunR's runtime schema, the patch feed's schema and example, and on pull requests a local build + smoke test (no push) of every CPU image the change touches |
publish.yml (Publish images) |
push to main; by hand; weekly (Monday 03:17 UTC) |
Build, smoke-test and push the CPU images. On a push: the images whose sources changed. By hand: the keys named (cpu for all of them, languages). Weekly: the language runtimes, which follow upstream patch releases and new versions once the language bot tested them (the gate). Before the language runtimes, the base images are mirrored (mirror-bases), so a newly discovered version builds. The language runtimes are published as routine patches; then the feed job updates the patch feed and deletes old patch tags. On a push and by hand, the catalog job then publishes the runtime catalog when the manifests changed and no image job failed. |
patch.yml (Patch runtime images) |
by hand | A patch on request (a zero-day): the runtimes and versions named rebuilt on freshly mirrored bases, smoke-tested, published as patches of the level given, the patch feed updated. See A zero-day patch. |
platform-release.yml (Platform release in the patch feed) |
by hand | A RunR platform release that carries a level, added to the patch feed |
heavy.yml (Heavy images, GPU) |
by hand, on any branch; weekly (Monday 04:17 UTC: exec-pytorch and exec-tensorflow -gpu) |
exec-pytorch/exec-tensorflow -gpu and hf-serve -cuda, one image per job on a runner with its preinstalled toolchains removed. Without a GPU on the runner, the smoke test checks the CUDA build. push: false builds and smoke-tests only. |
mirror.yml (Mirror reqs images) |
by hand; weekly (Monday 02:17 UTC) | ci.sh mirror-reqs and ci.sh mirror-bases |
lang-releases.yml (Language releases) |
weekly (Monday 00:47 UTC); by hand | ci.sh watch: a row of the week's issue deps: weekly (<ISO year>-W<week>) per upstream release the images do not follow yet, and per newer base-image series the reqs mirror could follow (The language bot) |
lang-test.yml (Language tests) |
after Language releases; by hand | Each new version of the weekly issue's rows built, smoke-tested and tested with RunR's e2e; green ones committed on main and published, red ones held, each result in its row (The language bot) |
Which images a change touches (ci/images.sh, tested by test/images_test.sh):
- The image's directory:
runtimes/<id>/,wrapper/orhf-serve/. - For the ML runtimes, also the Python runtime's handler server (
server.py,runner.py,entrypoint.sh). - Not image changes: Markdown, the wrapper's and hf-serve's tests, and the
runtime.yamlof a runtime whose tag does not come from it. - A change to the build tooling (
ci.sh,lib/) publishes nothing by itself. Run the publish workflow by hand for the images it should rebuild. - The first push to
mainof a new repository publishes nothing. - A push that touches a GPU image adds a notice to run the heavy-images workflow.
A tag is published again when its sources change; the version only changes when the source of the
version changes (see the table above). When a change should reach installs as a new version, raise
the version with it (the wrapper's const version, hf-serve's __version__, a WebAssembly
runtime's version). Then update the pins in BRF-Tech/runr: runtime/lib/runtime-images.sh, the
API and Helm defaults, and api/resources/runtimes/builtin.json (runtimes:bundle).
Two workflows keep the images on their upstream releases, and test a release before it is published.
Language releases (lang-releases.yml, Mondays 00:47 UTC and by hand) runs ci.sh watch
(lib/watch.sh) and adds each finding as a row of the week's issue (below), once per key:
| Finding (the row's title) | When |
|---|---|
lang: <runtime> <X.Y.Z> released |
a language runtime of RUNTIME_DEFS (python, nodejs, go, php, java, dotnet, ruby, bun): a new patch release of a published version, or a new version not published yet, as ci.sh build discovers it (Node.js: the newest minor of an even major; Java: an Eclipse Temurin LTS major; .NET: a released version, not a preview or release candidate; Bun: the newest minor), from the tags of the base image (Docker Hub, MCR for .NET; a .NET release is the runtime's, read from dotnet/runtime-deps, not the SDK's). Not a release runtimes/<runtime>/tested-versions lists already: the next publish publishes that one |
lang: <runtime> <X.Y> end of life <date> |
a published version past its end of life or within 60 days of it (endoflife.date), also when the base image's registry does not answer. A notice until the date (its row held until <date>; RunR's reminders count down to it); once the date is past, the bot archives the version and its row is archived (below) |
lang: maven|maven-dependency-plugin <X.Y.Z> released |
a release on Maven Central newer than its ARG in runtimes/java/Dockerfile, in the pin's major line (Maven 4 is a person's change) |
lang: pytorch|tensorflow <X.Y.Z> released |
a framework release on PyPI newer than its pin |
lang: <tool> <version> released |
a toolchain of the WebAssembly images newer than its ARG (spin, tinygo, wasi-sdk, wasm-tools, zig, componentize-py, spin-sdk, rust) |
base: <name> <series> available |
a newer released series of a base image the reqs mirror pins (REQS_IMAGES of lib/mirror.sh): alpine 3.N, debian N (by its codename: bookworm is 12), node's even majors, python 3.N, golang 1.N (WATCH_BASE_DEFS of lib/watch.sh); a series counts once a release of it is tagged (alpine:3.24.0, debian:13.1), not a pre-release. Its row is a person's decision: whether and when the images and RunR follow it; the bot mirrors and moves nothing, and does not test it. The row is done once the watch no longer finds it (the new series in REQS_IMAGES) |
base: <name> <series> end of life <date> |
a base-image series this repository's images run on or build from, past its end of life or within 60 days of it (endoflife.date: alpine, debian, nodejs, python, go): a reference to the reqs mirror in a catalog manifest (runtimes/*/runtime.yaml: a runImage, a dependencies or build image) or a Dockerfile's base, its ARG defaults filled in (watch_base_eol of lib/watch.sh). The language runtimes' own versions are their lang: findings. Its row is a person's decision with the references: move them to a supported series (mirrored first); the row is done once nothing here references it. RunR's own references to the reqs mirror are BRF-Tech/runr's dependency bot's |
The weekly issue. One issue per ISO week (UTC) that has findings, deps: weekly (2026-W48)
(ci/weekly.sh, its format in ci/weekly.jq; the idea of BRF-Tech/runr's dependency digest), has
a row per finding: its key (the name the watch gives it: ruby-4.0.10, php-8.2-eol,
base-alpine-3.24), its title, its state, a note and the run that wrote it, and under the table
what each finding is. The bots edit the body in place and write no comments on it; each row's data
is a hidden <!-- runr-lang:row {…} --> line, and the body's last line is
<!-- runr-lang:weekly:<week> --> (a marker anywhere else, say in a person's text, is none).
| State | Means |
|---|---|
new |
found, not tested yet: the next run of Language tests takes it |
testing |
a run of Language tests has it (its run linked); a run that was cancelled leaves it for the next one |
published |
green: on main (its commit in the note), the publish workflow publishes it |
needs attention |
red: the note says what failed (RunR's failed cases, or the last line of the log that says so), the run's summary has the end of the logs. A person fixes it, then runs Language tests with the row's key; a newer release supersedes it by itself |
upstream outage |
an upstream server's 5xx (or the registry inside RunR's e2e cluster) stopped the test: the next run tests it again by itself; a second outage in a row is needs attention |
held |
an ML release without its CUDA wheel (done: nobody acts, a newer release is a new row), or held until <date>: an end-of-life notice, the version deprecated in the catalog by the first run that sees it and archived after its date |
a person's decision |
a newer series of a base image: done once the watch no longer finds it |
archived |
a version past its end of life, archived |
superseded |
a newer release of the same image replaced it (the bot tests the newest one only) |
done |
the watch no longer finds it (it read every upstream), or main has it already |
Finished: published, archived, superseded, done and held without a date. A key that any
weekly issue has, or that a closed issue of the earlier bot named (one issue per finding, before
2026-11-28), is not added again: the de-dup of "this title was filed already" is per row. When a
later week has findings, its issue opens with the open rows of the last one carried over
("Continued from #N.") and the new findings, and the last one closes with a link to it
("Continued in #N."); a week without findings opens none. An issue whose rows are all done closes
("Closed: every row is done."), and this week's closed issue reopens when a new finding comes in.
The issue has the label deps, and needs attention while a row needs a person; the earlier
labels lang: passed and lang: upstream outage are row states now. An issue of the earlier bot
still open is folded into the week's issue as a row in the state of its labels and closed with a
pointer to the row ("Folded into the weekly issue #N, row <key>"); one the complete watch no
longer finds is closed as resolved.
Language tests (lang-test.yml, after every run of Language releases and by hand: Actions →
Language tests → Run workflow, or gh workflow run lang-test.yml -f rows=ruby-4.0.10,go-1.27.4)
tests every open released row of the weekly issue that has no result yet (new, testing), or
that an outage stopped the run before (upstream outage); a row that needs attention waits until a
run names it. Of several rows of one image it tests the newest release and marks the older ones
superseded. It marks the rows it takes testing, and writes each result into its row when it
ends (ci/lang-bot.sh plan, plan-updates, land; ci/weekly.sh update); the run's summary has
each row's report.
- A language version. The base images are mirrored first, then
exec-<runtime>:<X.Y>is built for it and smoke-tested (ci.sh build <runtime> --version=X.Y), and this repository's tests run. The image is pushed asghcr.io/brf-tech/runr/candidates/exec-<runtime>:<X.Y.Z>, a package RunR never discovers by itself (ci/lang-bot.sh push: pushed again when GHCR refuses the first push of a new package, three times at most). RunR's main e2e (runtime/ci.sh testof its last release, on Kind) then runs with that image, named by its digest, as the only version of that runtime, and its xaas and faas cases deploy functions on it (ci/lang-bot.sh catalog,check-e2e). By its digest: RunR runs a version's tag as the newest patch of the signed patch feed, by that patch's digest in the image's repository, which the candidates' repository does not have (MANIFEST_UNKNOWN in the e2e cluster's registry, ImagePullBackOff on its nodes); a reference by digest is never patched. RunR's shell case (exec-ws-shell) of releases up to 0.7.9 runs on the first ready HTTP function, a dotnet candidate's, whose chiseled image has no shell: when that case is the suite's only failure on such a runtime, the suite counts as passed with a note (ci/lang-bot.sh shell-less), andcheck-e2estill decides on the candidate's own cases. A runtime RunR's last release does not have yet (Java, .NET, Ruby and Bun before RunR 0.6.8) cannot be deployed there: the bot reports the suite as skipped, and the build and smoke test decide, until RunR's next release brings the runtime. - A new Bun minor. Bun supports only its newest release. When a new minor passes, the bot also
deprecates every published version below it, from that day, with a sunset 13 weeks later
(
versionDiscovery.lifecycleofruntimes/bun/runtime.yaml,ci/lang-bot.sh lifecycle): RunR, reading the runtime catalog, then shows the badge and sends its reminders (13, 4 and 1 weeks before the sunset). - A tool of a language image (
ci/lang-bot.sh tool-bump): Maven and its dependency plugin inexec-java. TheARGmoves inruntimes/java/Dockerfile, Maven's with the SHA-512 of its download from Maven Central, which must be the one published next to it (.sha512). Every version of the image is built and smoke-tested (ci.sh build java), this repository's tests run, and the newest version is pushed ascandidates/exec-java:<X.Y.Z>-<tool>-<release>; RunR's main e2e then runs on it as for a language version. - An ML framework. The pin moves (torch with the torchvision pip installs next to it: the
newest release whose torch requirement admits it, an exact
torch==Xup to torchvision 0.29.0 or a range such astorch>=2.14.0since 0.29.1, and that the-gpuimage's CUDA wheel index has too; or tensorflow's CPU and CUDA pins), the CPU image is built and smoke-tested, this repository's tests run, and the image is pushed ascandidates/exec-<runtime>:<X.Y.Z>. RunR's main e2e then runs with it as the only version of that runtime and its ML case (test:e2e --ml): one HTTP function that does a matrix product with the framework and fails on a wrong result. The CPU images fit a standard runner (compressed, measured on GHCR on 2026-11-07:exec-pytorch:2.14410 MiB,exec-tensorflow:2.21495 MiB). RunR releases up to 0.6.7 have no ML case: until RunR's next release, the bot reports the suite as skipped and the build and smoke test decide. The-gpuimages are not tested here: the heavy-images workflow builds them. There is no CPU/GPU split: both images install the same pins, always the newest that works on both. A torch without a wheel on the-gpuimage's CUDA wheel index (Dockerfile.gpu, cu126), or without a torchvision there, is held (ml-bumpexit 4): nothing is built, nobody is asked, and the row isheld("held: no cu126 wheel …; CPU and GPU stay on "). The bot keeps watching: a newer torch, or a newer patch of the current minor, that has the wheel is a new row, bumped and tested as usual. - A WebAssembly toolchain (
ci/lang-bot.sh wasm-bump). ItsARGmoves in everyruntimes/wasm-*/Dockerfilethat has it, with the SHA256 of its downloads (Spin, wasi-sdk and wasm-tools: the release assets; zig: ziglang.org's index), and the base image of the reqs mirror follows for tinygo and rust (REQS_IMAGESoflib/mirror.sh, mirrored before the build). The images that have it are built and smoke-tested (ci.sh wasm), this repository's tests run, and they are pushed ascandidates/exec-wasm-<lang>:<version>-<tool>-<release>. RunR's suites that deploy them then run with those images under their published names (RUNTIME_IMAGES_LOCAL=1):ci.sh test-wasm(the Rust and JavaScript examples) for spin and rust,ci.sh test-images(wasm-exec's C and Q cases) for spin, tinygo, wasi-sdk, wasm-tools and zig. For Spin they also show whether RunR's Spin shim runs what the new Spin CLI builds. RunR's e2e has no case of wasm-go and wasm-python: for componentize-py and spin-sdk, and for wasm-go's TinyGo, the smoke test decides. The images keep their version, so RunR moves nothing. - Green: the bot commits on
mainas a fast-forward (git push origin HEAD:refs/heads/main, never forced), asBurak Faruk ŞAHİN <[email protected]>, each commit marked as the bot's by its trailerRunR-Lang-Bot: <name> <version>(as BRF-Tech/runr'sRunR-Deps-Bot). A language version goes intoruntimes/<runtime>/tested-versions(a new Bun minor with the lifecycle of the ones below it); a tool's, an ML framework's or a toolchain's commit is its pin. After the last landing the bot starts the publish workflow once, formainas the run left it, with every image the landed tests touched (a push of the workflow's token starts no workflow), and marks each rowpublishedwith its commit. The run's report also says what RunR's last release pins of that runtime. The language runtimes pin nothing there (RunR finds their versions in the registry), so nothing moves in RunR. - Several green tests of one run land one after the other on the moving
main(ci/lang-bot.sh land, each in a process of its own). When a test's patch no longer applies because the landings before it moved the lines around it (tinygo's mirror line after rust's, zig'sARGs after wasm-tools'), the bot makes the same bump again on the newmainand commits it only when it changes the very lines the tested patch changed (the same pins and checksums); otherwise its row goes back tonewwith why, and the next run tests it again. Whenmainchanged the images' directories after the tested commit by a commit that is not the bot's (no trailer), nothing is committed, and the next run tests it again. A test the bot fails to land is reported (needs attention, its log in the run's summary); the others still land and every row gets its result. - Red: the row
needs attention, its note what failed (RunR's failed cases, else the last line of the log that says so) and the run; the run's summary has the end of each failed job's log, into which every step of the job prints (a step that printed nothing says so instead of an empty block). Nothing is committed: the weekly publish holds a language version, and a tool, ML or toolchain pin stays where it was. Run the workflow with the row's key to test it again, or wait for a newer release to supersede the row. - An end of life. RunR counts down to a version's end of life in its reminders; after it the
version leaves the picker and its projects can no longer be saved or deployed (running
deployments are never touched). The
lang: <runtime> <X.Y> end of life <date>row is a notice until that date (held until <date>). The first run of Language tests that sees it deprecates the version in the catalog, nobody asked (ci/lang-bot.sh land,deprecate-one): from that day inversionDiscovery.lifecycleofruntime.yaml, its sunset the end of life, so RunR shows it as deprecated (a badge and a notice; the version stays usable) whatever endoflife.date says later; a version with an entry there already keeps it. The first run after the date archives the version, nobody asked (ci/lang-bot.sh land,archive-one;lib/eol.sheol_archive_image): the image the floating tag names stays, by its digest, asexec-<runtime>:eol-<X.Y>with its patch tags (history); the floating tag<X.Y>goes (GHCR deletes no tag by itself: it moves onto an empty image of its own, whose package version is deleted), so RunR'sexecutor:syncno longer offers the version, while its projects keep it, shown and locked as end-of-life, and running deployments keep their image by digest. Onmain:runtimes/<runtime>/archived-versions(<X.Y> <end of life> <digest>), the version out oftested-versions(and of exec-php'sPHP_FIXED_RELEASES), and{eol: <date>}for it inversionDiscovery.lifecycleofruntime.yaml, which RunR reads whatever endoflife.date says. The build, the watch and the patch feed leave an archived version out (its patch tags all stay); the publish run the bot starts drops its patches from the signed feed and publishes the runtime catalog. The row isarchived, its note says what was archived where.ci.sh eol --archivedoes the registry's part by hand. - An outage is not the release's fault, and pages nobody. The downloads retry (the
Dockerfiles'
curl,ci/fetch.shfor the tools the jobs install, a GitHub release asset through the GitHub API whenreleases/downloadgives 504). A RunR suite that failed on an outage runs once more. An outage (ci/lang-bot.sh upstream) is an upstream server's HTTP 500/502/503/504 of a public https URL on a line that failed (a chart, an image or a package the build or RunR's e2e downloads), aRUNstep'scurl: (22), or the registry inside the e2e's Kind cluster that did not answer (a private address's/v2/with "unable to complete operation after N attempts", Zot's "synchronization failed", "connection refused", "i/o timeout"); never another local address, where the candidate answers. When RunR's e2e lists failed cases, each of them must be one: a case that failed on its own (a compile error, its own output) is a failure. A test whose every failure is an outage isupstream outagein its row, and the next run tests it again by itself; a second outage in a row isneeds attention. - The bot's own tests run on the change. They read the pins from the files the bump moves
(
test/catalog_test.sh: one Spin CLI in every WebAssembly image, whichever it is;test/lang_bot_test.shbumps from the checkout's pin to the next release), so a green candidate is not held by a test that names the old pin.
The gate. The publish workflow sets LANG_GATE=1. A routine build of an upstream version
other than the one a tag already runs is pushed only when runtimes/<runtime>/tested-versions
lists it (<X.Y> <X.Y.Z>). Until then it is held: nothing is pushed, the published patch stays,
and the run says "held". A rebuild of the version a tag runs (a base image refresh, a runtime
update) is never held, nor a patch of the patch workflow (a person's decision, a zero-day).
What the workflows need besides their GITHUB_TOKEN:
- Language releases:
issues: write(the weekly issue, the labelsdepsandneeds attention, the earlier bot's issues folded). - Language tests:
issues: write(the weekly issue's rows and its labelneeds attention);packages: write(the base images mirrored, the candidates pushed);- in its landing job alone,
contents: writeandactions: write(the publish workflow), andpackages: writeto archive an end-of-life version (itseol-<X.Y>tag, its floating tag removed: the Admin role of this repository on the language runtimes' packages, PACKAGES.md).
The bot takes RunR from its public repository, at its last release (gh release view): nothing of
RunR's private development repository, no deploy key. test/workflows_test.sh keeps all of this:
no other push, refspec or force, no secret but the GITHUB_TOKEN, RunR at its last release only.
Every published build of a language runtime (exec-python, exec-nodejs, exec-go, exec-php,
exec-java, exec-dotnet, exec-ruby, exec-bun) is a patch. RunR instances learn about patches from one signed document, the patch feed.
A build of exec-<runtime>:<major.minor> that differs from the published image is pushed with two
tags: the floating <major.minor> (exec-php:8.3), which always names the newest patch, and the
immutable <full upstream version>-r<n> (exec-php:8.3.36-r1). The full version is the one the
image runs, as its smoke test reads it from the language (PHP_VERSION, process.versions.node,
platform.python_version(), runtime.Version(), Java's Runtime.version() as
feature.interim.update, Environment.Version, RUBY_VERSION, Bun.version). n counts the builds of the same upstream
version that published a different image: a new base image or OS packages, our sources, the
packages the Dockerfile installs. A patch tag is never overwritten.
A build that is the image already published publishes nothing. The builds are reproducible: every
patch build runs with SOURCE_DATE_EPOCH (the time of the last commit of the runtime's directory)
and rewrite-timestamp=true, so the same sources on the same base give the same image digests.
ci.sh builds the multi-arch image without pushing and compares the digest of its image index with
the sh.runr.patch.build annotation of the floating tag's patch; only a different build is pushed
(the same build, from the builder's cache, with the patch annotations).
The patch tags of a version are kept for its newest five patches. Older patch tags are deleted by
the feed update after a publish (through the GitHub Packages API), never a floating tag, never a
patch the feed lists and never one of an archived version. RunR's runtime discovery reads only <major.minor>
tags; patch tags do not appear as versions.
| Level | Meaning | Deadline |
|---|---|---|
routine |
weekly rebuilds, upstream patch releases, our changes | none |
security |
a security fix | optional (deadline_hours) |
critical |
a critical security fix | required, default 168 hours |
zero-day |
a vulnerability exploited before a fix existed | required, default 72 hours |
Every patch carries: level, reason (short, en and tr), cves (CVE or GHSA ids), url (the
advisory), upstream (PHP 8.3.36), published_at, deadline_at, and the digest of its image
index. A routine patch without a reason gets one from what changed: Upstream PHP 8.3.36,
Base image refresh or Runtime update. The image index carries them as annotations
(sh.runr.patch.id, .runtime, .version, .tag, .level, .reason.en, .reason.tr, .cves,
.url, .upstream, .published_at, .deadline_at, and .build and .base, the build digest
and the base image with its digest); the platform manifests stay as built.
ghcr.io/brf-tech/runr/runtime-patches:feed is an OCI artifact with one layer of
application/vnd.runr.patch-feed.v1+json: the JSON document of
schema/patch-feed.v1.json (an example:
schema/patch-feed.example.json). patches holds the newest five
patches of every runtime version, platform the newest ten RunR platform releases that carry a
level; both newest first.
Every update builds the next feed from the current one: it pulls the feed and verifies its
signature (none yet: an empty feed), adds the patches the registry has and the feed lacks (read
from their annotations, so a publish whose feed update failed is listed by the next one), adds the
results of the run's builds (new patches, and the promotions of promote_unchanged), and checks
the result against the schema and the rules it cannot express (unique ids, at most five patches
per version). It pushes the feed as feed-candidate, signs it with cosign by digest, verifies the
signature with keys/patch-feed.pub and only then tags it feed: feed
always names a signed feed. One feed writer runs at a time (the workflows' patch-feed
concurrency group). An unchanged feed is not published again.
The signature is cosign's classic one (the tag sha256-<digest>.sig next to the feed, ECDSA P-256),
without a transparency log entry. To read and check the feed:
./ci.sh feed show --verify
# or with the tools themselves
cosign verify --key keys/patch-feed.pub --insecure-ignore-tlog=true ghcr.io/brf-tech/runr/runtime-patches:feed
oras pull ghcr.io/brf-tech/runr/runtime-patches:feedThe owner decides that a vulnerability needs a patch and tells the operator. The operator runs Actions → Patch runtime images → Run workflow with:
| Input | Example |
|---|---|
runtimes |
php (php,python, or all) |
versions |
all, 8.2,8.3,8.4,8.5 (one runtime), or php:8.3,python:3.12 (several) |
level |
zero-day |
reason_en, reason_tr |
one line each |
cves |
CVE-2026-109618 |
url |
the advisory |
deadline_hours |
empty: 72 for zero-day, 168 for critical |
promote_unchanged |
off (see below) |
or from a shell with the GitHub CLI:
gh workflow run patch.yml -R BRF-Tech/runr-runtimes \ -f runtimes=php -f versions=all -f level=zero-day -f cves=CVE-2026-109618 \ -f reason_en="Heap overflow in the multipart parser" -f reason_tr="Multipart ayrıştırıcısında heap taşması" \ -f url=https://www.php.net/ChangeLog-8.php
The workflow checks the request, mirrors the base images again (the builds take upstream's fixed bases), builds and smoke-tests every version named, publishes each changed one as a zero-day patch and updates the feed.
A version whose build did not change gets no new patch, and the run warns about it. That has two
causes only a person can tell apart: upstream has no fixed release or base image yet (run the
workflow again once it has), or an earlier build already picked the fix up (a weekly build after
upstream's release). In the second case run it again with promote_unchanged on: the version's
current patch then takes the request's level, reason, CVEs and deadline in the feed. The image
annotations keep the metadata it was published with; the feed is what instances follow.
The same from a shell with push rights (ci.sh patch without --push is a dry run that builds and
shows what it would publish):
./ci.sh mirror-bases ./ci.sh patch php --versions all --level zero-day --cves CVE-2026-109618 \ --reason-en "…" --reason-tr "…" --url https://… --push
A RunR platform release that carries a level (a security fix in RunR itself) goes into the feed
with Actions → Platform release in the patch feed (version, level, reason_en, reason_tr,
url), or ci.sh feed platform --version 0.5.11 --level security --reason-en … --reason-tr … --push.
The ML runtimes, the WebAssembly build images, the wrapper and hf-serve have no patches yet. An
image adopts them in its --push path:
- Read its full upstream version in its smoke test (torch or TensorFlow
__version__, the Spin CLI of a WebAssembly image) and name its patch tag after it:2.14.1-gpu-r1of2.14-gpu(the variant suffix after the version),4.1-r1of4.1(a version without a patch number).lib/feed.jqalready orders and groups such tags (tag_key,tag_version). - Publish with
patch_publish_image PUSH RUNTIME VERSION FULL CONTEXT [BUILD FLAG...](the image isexec-<RUNTIME>, VERSION its floating tag) instead ofpush_built; extendpatch_full_version_validandpatch_upstreamfor its versions and name (today they know<major.minor>.<patch>releases of the four languages). A multi-arch image (WebAssembly, the wrapper, hf-serve CPU) needs nothing else. The images pushed exactly as tested (docker pushof the ML runtimes and hf-serve CUDA) first need a reproducible single-platform build (docker buildx build --loadwithSOURCE_DATE_EPOCHandrewrite-timestamp=true) and the same digest comparison on their image manifest. - Add the runtime to
PATCH_LANGUAGE_RUNTIMES(the runtimes the feed update reads and prunes), topatch.yml's inputs and outputs, and check its Dockerfile builds reproducibly (two builds without cache, the same digest).
ghcr.io/brf-tech/runr/runtime-catalog:stable is the signed list of the runtimes RunR offers: the
manifest of every runtimes/<id>/runtime.yaml in one JSON document. RunR installations read it
periodically and check its signature, so a runtime added or changed here reaches them without a
RunR release. How an installation uses it is documented in
RunR's docs.
The catalog is an OCI artifact like the patch feed: an image manifest with the artifactType
application/vnd.runr.runtime-catalog.v1+json, an empty config
(application/vnd.oci.empty.v1+json) and one layer of that media type, at most 8 MiB. The layer
is the JSON document of schema/runtime-catalog.v1.json (an
example: schema/runtime-catalog.example.json).
| Tag | What it names |
|---|---|
stable |
the catalog RunR reads; only ever a signed one |
<YYYYMMDDHHMM>-<first 12 hex digits of the commit> |
every published catalog, never moved (202611071200-3a65d02b3a71) |
stable-candidate |
the last catalog pushed, before it was signed |
sha256-<digest>.sig |
the cosign signatures |
{
"schema": 1,
"generated_at": "2026-11-07T12:00:00Z",
"source": {"repository": "https://github.com/BRF-Tech/runr-runtimes", "revision": "<40 hex digits>"},
"runtimes": [
{"path": "runtimes/python/runtime.yaml", "manifest": {"apiVersion": "runr.sh/v1", "kind": "Runtime", "id": "python", "…": "…"}},
{"path": "runtimes/q/runtime.yaml", "manifest": {"…": "…"}, "files": {"Dockerfile": "FROM …", "main.go": "…"}}
],
"patches": []
}generated_atis when the catalog was built,source.revisionthe commit it was built from.runtimeshas one entry perruntimes/<id>/runtime.yaml. The manifest'sidmust be the directory's name. The order is RunR's catalog order: python, nodejs, go, php, tensorflow, pytorch, then the rest by path.manifestis theruntime.yamlas JSON, read with the YAML 1.2 core schema: onlytrueandfalseare booleans, and quoted versions ("3.14"),yes,noand dates stay strings. A duplicate key is an error.- Every
@filevalue ofbuild.filesis replaced by the content of that file: a string value, or each variant of an object such as{http: "@wrapper_http.go", schedule: "@wrapper_schedule.go"}. The path is relative to the manifest's directory and must stay inside it; CRLF becomes LF. RunR's own bundle (BuiltinCatalog::readSources) does the same, so a runtime reads the same from the catalog and from the copy a release ships. filesappears only for a runtime with a version that names adockerfile, which RunR builds in each region. It holds every regular file of the runtime's directory exceptruntime.yaml(not recursive, CRLF as LF). The names must be ConfigMap keys, with at most 50 files and 900 KB together. None of this repository's runtimes has one today.patchesholds patch-feed v1patches[]entries for a catalog's own runtime images. This catalog leaves it empty: BRF-Tech's patches are in the patch feed.
ci.sh catalog validate checks the schema and the rules it cannot express (lib/catalog.jq
catalog_problems): unique ids and paths, the order, a dockerfile among the files, the 900 KB, and
the patch rules of the feed. Each manifest is checked against RunR's runtime schema by CI here
and again by the RunR installation that reads it.
The catalog job of publish.yml runs ci.sh catalog publish --push on a push to main and by
hand. It runs after the image jobs, and only when none of them failed, so a new runtime's images
exist before the catalog names them. A publish:
- builds the catalog from
runtimes/(lib/catalog.py) and checks it; - pulls the current
stableand verifies its signature (when there is none, this is the first publish); - compares the runtimes and patches of both, but not
generated_atorsource.revision, so an unchanged catalog is not published again; - pushes the new catalog as
stable-candidate, signs it by digest, verifies the signature withkeys/patch-feed.pub, then tags itstableand its immutable tag.
One publisher runs at a time (the runtime-catalog concurrency group). A push refuses
uncommitted changes in runtimes/, because source.revision would not name them. Without
--push, ci.sh catalog publish is a dry run: it prints the runtimes it would add (+), change
(~) and remove (-).
The catalog is signed with the patch feed's key pair. Both artifacts carry the same trust
("BRF-Tech/runr-runtimes says so"). A second key would live in the same repository's Actions
secrets, so it would give little real separation. RunR also already pins keys/patch-feed.pub.
RunR accepts a separate catalog key (RUNR_RUNTIME_CATALOG_PUBLIC_KEY), so the catalog can get
its own pair later. CATALOG_SIGNING_KEY and CATALOG_KEY then name it here (ci.sh help).
To read and check the catalog:
cosign verify --key keys/patch-feed.pub --insecure-ignore-tlog=true ghcr.io/brf-tech/runr/runtime-catalog:stable
oras pull ghcr.io/brf-tech/runr/runtime-catalog:stable # writes runtime-catalog.json- Add
runtimes/<id>/: itsruntime.yaml(valid against RunR's runtime schema,id= the directory's name), its Dockerfile and the language's handler server. Its versions are images this repository publishes (versionDiscoveryofexec-<id>, orversions[].image). - Give it an image key in
ci/images.shwith theci.shcommand that builds it, so the publish workflow builds, smoke-tests and pushes its images.test/images_test.shfails for a runtime directory without a key. A new package needs nothing (PACKAGES.md). Update the runtime count oftest/catalog_test.sh. - Open a pull request. CI checks the manifest against RunR's schema, builds and checks the catalog, and builds and smoke-tests the new images.
- Merge it. The publish workflow pushes the images, then the catalog job publishes the catalog with the new runtime. RunR installations offer it after their next catalog sync.
To bring a language to RunR from your own repository instead, see BRF-Tech/runr-sample-custom-executor and RunR's executor development guide.
ghcr.io/brf-tech/runr/reqs/ holds every third-party image RunR uses, copied multi-arch from
Docker Hub: Docker Hub's anonymous pull limit would otherwise stop nodes, build hosts and CI
runners. lib/mirror.sh lists them (REQS_IMAGES). The base images of the language runtimes are
discovered like the runtime versions (mirror-bases, RUNTIME_DEFS of lib/common.sh): the
image each Dockerfile builds on (a Temurin major is mirrored under its runtime version,
eclipse-temurin:21-jdk as eclipse-temurin:21.0-jdk), and for .NET also the image its functions
run on, mcr.microsoft.com/dotnet/runtime-deps:<version>-resolute-chiseled-extra as
dotnet-runtime-deps:<version>-chiseled-extra. The .NET images come from Microsoft's registry,
not Docker Hub.
- When Docker Hub refuses a copy, the image comes from a pull-through mirror of it
(
REQS_UPSTREAMS), and only by Docker Hub's digest. - An image Docker Hub does not carry is listed with its registry
(
quay.io/jetstack/cert-manager-controller:v1.21.2) and copied from that registry alone, so RunR pulls it from one place. - Every copy refused with DENIED (from Docker Hub, a mirror of it or a source's own registry) is
made once more after a pause (
REQS_RETRY_PAUSE), before the next upstream: GHCR can refuse part of the first push to a package it is still creating, so a new image needs no second run. - BRF-Tech/runr checks that every reqs image it references resolves anonymously. An image it
starts to use is added to
REQS_IMAGEShere and mirrored first (mirror.ymlby hand, with the image's name).
for t in test/*_test.sh; do bash "$t"; done # without Docker or a registry (jq; python3 with PyYAML for the catalog; check-jsonschema for the schemas) bash ci/check-dockerfiles.sh bash ci/check-reqs-mirror.sh (cd wrapper && go test -race ./...) (cd hf-serve && pip install -r requirements-test.txt && python -m pytest tests)
See CONTRIBUTING.md. Report vulnerabilities privately as described in SECURITY.md. MIT licensed, see LICENSE.