bug: dispatcher fails in edge container — lib/env.sh not available #119
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Problem
The dispatcher (
docker/edge/dispatcher.sh) sourceslib/env.shon line 23, but the edge container only has the dispatcher script and Caddy. The disinto codebase is not available.Also, the dispatcher is not started — Caddy is PID 1 and the only process running.
Fix
Clone the disinto repo at a pinned tag on container startup. Create
docker/edge/entrypoint-edge.sh:Update
docker/edge/Dockerfile:Update compose (in
bin/disintogenerate_compose):DISINTO_VERSIONandFORGE_URLenvironment variablesWhy this approach
DISINTO_VERSIONenv var set during release, dispatcher runs the same code version as agentsWhat about dispatcher restarts?
If the dispatcher crashes, it stays down until the container restarts. That is acceptable — the dispatcher polls every 60s and vault actions are not time-critical. If we need supervision later, add
s6-overlayor a simple bash restart loop.Affected files
docker/edge/entrypoint-edge.sh(new)docker/edge/Dockerfile(update — add entrypoint, remove COPY dispatcher.sh)bin/disintogenerate_compose (update — remove dispatcher mount, add env vars)Acceptance criteria
DISINTO_VERSIONtag (ormainas default)