Skip to content

chore: retire the repo docker image; batteries image builds from asobi_bundle - #471

Merged
Taure merged 1 commit into
mainfrom
chore/retire-repo-image
Aug 13, 2026
Merged

Taure merged 1 commit into
mainfrom
chore/retire-repo-image

Conversation

@Taure

@Taure Taure commented Aug 13, 2026

Copy link
Copy Markdown
Contributor

What

  • Removes .github/workflows/docker-publish.yml from this repo.
  • Documents in guides/self-hosting.md that ghcr.io/widgrensit/asobi is now built from asobi_bundle and that a from-source build should depend on asobi_bundle.

Why

The image was built here from [asobi, sasl], which omits every extension. Combined with asobi_engine's relx also omitting them, asobi_seasons and asobi_quests reached zero running nodes. The batteries image now builds from the bundle's full closure (asobi_bundle#1), so this repo no longer needs to publish an image.

The image name is unchanged (ghcr.io/widgrensit/asobi) - the bundle's workflow hard-codes it - so no compose file or pin breaks.

Sequencing

Merges only after the bundle's first image publish is confirmed, so there is never a window with no publisher. The repo keeps its Dockerfile for local/assembler kernel builds.

…rom the bundle

The official ghcr.io/widgrensit/asobi image is now built from the asobi_bundle
meta-package (asobi + every first-party extension), not from this repo's bare
[asobi, sasl] release. Building it from the bundle's full closure is what stops
an extracted subsystem (asobi_seasons, asobi_quests) silently vanishing from the
image on upgrade.

Remove this repo's docker-publish.yml (the image name and everything users do
with it are unchanged) and document the provenance + the build-your-own-release
path in the self-hosting guide.
@github-actions

Copy link
Copy Markdown

🟡 Code Coverage — 76.6%

7565 of 9870 lines covered.


🟡 ELP Lint — 180 warnings

199 diagnostics found. See job logs for details.

@Taure
Taure merged commit 600de2c into main Aug 13, 2026
16 checks passed
@Taure
Taure deleted the chore/retire-repo-image branch August 13, 2026 14:59
Taure added a commit that referenced this pull request Aug 19, 2026
The gateway release had no CI behind it: the reusable workflow builds no
releases, so nothing checked that the closure this split exists for stays
what it is, and the image the guides name did not get built at all.

Two jobs, and the guard is the point of both.

`gateway-release` in CI assembles both releases on every PR and asserts the
gateway's lib directory: asobi_dgram_gw, crypto, kernel, sasl, seki, stdlib,
telemetry, and none of nova, kura, kura_postgres, shigoto, luerl, nova_auth,
nova_resilience, cowboy or ranch. That property belongs to relx's output
rather than to any module, so a unit test cannot hold it - the closest a test
can get is the gateway app's declared dependency list, which is necessary and
not sufficient. Assembling the engine release alongside keeps the other half
of the spec honest for the same two minutes. Verified both ways: it passes on
the gateway release and fails on the engine one.

`docker-publish-gateway.yml` builds the image locally, runs the same closure
check inside it, and only then pushes. The engine image is deliberately not
built here - it comes from asobi_bundle, because it has to carry the full
extension closure (#471). The gateway's requirement is the exact inverse, so
the bundle is the wrong source for it and this repository is the only place
that defines what belongs in it. That contrast is now in the self-hosting
guide next to the existing provenance note.

Tags follow the retired workflow's scheme, including the {{major}} tag and the
reason it is emitted rather than left orphaned.
Taure added a commit that referenced this pull request Aug 19, 2026
…514)

* fix: the datagram gateway is its own application, release and image

Closes #513.

The two-role split was a switch read inside `asobi_app:start/2`, and that is
too late to isolate anything. OTP starts an application's dependencies before
its start callback runs, so by the time `ASOBI_ROLE` was read the container
parsing packets from the internet had already opened a pool with the tenant
credentials (`kura`), run schema migrations and started job workers
(`shigoto`), and bound an HTTP port (`nova`). No code inside `start/2` can
undo any of it. Only a release that never listed those applications can.

So the gateway is one now. `asobi_dgram_gw` is an OTP application holding the
thirteen modules that face the internet plus the codec both roles share, and
its dependency list is kernel, stdlib, crypto, telemetry and the rate limiter.
`asobi` depends on it, never the reverse. Two relx releases follow, and
`docker build --target gateway` produces an image whose whole lib directory is
asobi_dgram_gw, crypto, kernel, sasl, seki, stdlib, telemetry.

Verified by booting it: the application starts standalone, kura, nova and
shigoto are not merely unstarted but not loaded, the full supervision tree
comes up, and the readiness canary round-trips a real datagram through the
receive loop with no engine anywhere.

The split needed three things beyond moving files. The gateway's telemetry
moved with it - `asobi_dgram_telemetry` owns every `[asobi, dgram, *]` event,
because a module in the `asobi` application is not reachable from a release
that does not contain it; `asobi_telemetry:events/0` folds that list in, so an
operator still attaches to one list and every event still has one definition.
It needed a log formatter, because `nova_jsonlogger` lives inside nova and
pulling nova in for a formatter would bring cowboy, ranch and erlydtl with it;
`asobi_dgram_gw_logger` emits the same JSON-per-line contract with the fields
the observability guide documents. And it needed its own sys.config, four
lines long, because a gateway container must not be handed ${ASOBI_DB_*} just
to render a file it never reads.

`ASOBI_ROLE=dgram_gw` on the engine image still starts the gateway and only
the gateway, for deployments already using it - and still carries the flaw
above, which the guides now say plainly rather than claiming an isolation the
code could not provide.

Note for whoever publishes images: this adds a second target. The guides name
it `ghcr.io/widgrensit/asobi-dgram`; nothing in this repository publishes
either image, so that tag needs building wherever `ghcr.io/widgrensit/asobi`
is built. `rebar3 as prod release` now requires `-n asobi` or `-n asobi_gw`,
which relx enforces once a project declares more than one release.

* ci: build, guard and publish the gateway image

The gateway release had no CI behind it: the reusable workflow builds no
releases, so nothing checked that the closure this split exists for stays
what it is, and the image the guides name did not get built at all.

Two jobs, and the guard is the point of both.

`gateway-release` in CI assembles both releases on every PR and asserts the
gateway's lib directory: asobi_dgram_gw, crypto, kernel, sasl, seki, stdlib,
telemetry, and none of nova, kura, kura_postgres, shigoto, luerl, nova_auth,
nova_resilience, cowboy or ranch. That property belongs to relx's output
rather than to any module, so a unit test cannot hold it - the closest a test
can get is the gateway app's declared dependency list, which is necessary and
not sufficient. Assembling the engine release alongside keeps the other half
of the spec honest for the same two minutes. Verified both ways: it passes on
the gateway release and fails on the engine one.

`docker-publish-gateway.yml` builds the image locally, runs the same closure
check inside it, and only then pushes. The engine image is deliberately not
built here - it comes from asobi_bundle, because it has to carry the full
extension closure (#471). The gateway's requirement is the exact inverse, so
the bundle is the wrong source for it and this repository is the only place
that defines what belongs in it. That contrast is now in the self-hosting
guide next to the existing provenance note.

Tags follow the retired workflow's scheme, including the {{major}} tag and the
reason it is emitted rather than left orphaned.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant