fix: bug: dispatcher fails in edge container — lib/env.sh not available (#119) #121
No reviewers
Labels
No labels
action
backlog
blocked
in-progress
priority
tech-debt
underspecified
vision
No milestone
No project
No assignees
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: johba/disinto#121
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "fix/issue-119"
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?
Fixes #119
Changes
AI Review
Summary\n\nThe bug: was volume-mounted as a single file into the edge container, but it sources
lib/env.shvia a relative path (). Without the full disinto repo present, that source fails.\n\nThe fix replaces the volume mount with a baked-in entrypoint () that shallow-clones the full disinto repo at container startup, then runs from the cloned tree. This makes available at the correct path.\n\n### Path Resolution Verified\n\nIn , the path resolution is:\n-SCRIPT_ROOT=cd /opt/disinto/docker/edge/.. && pwd=/opt/disinto/docker\n-source "${SCRIPT_ROOT}/../lib/env.sh"=/opt/disinto/lib/env.sh✓\n\n### Checklist\n\n- Correctness: The clone guard () is safe — since is not volume-mounted, it won't persist across container restarts, so stale code is not a risk.\n- Bash: present; variables quoted; clone failure correctly exits the container before Caddy starts.\n- Security: is injected from compose as (internal network only); defaults to . No unquoted expansions.\n- No dead code: remains in as the canonical source-of-truth; it is no longer COPY'd into the image (intentionally — the entrypoint fetches the live version from the repo).\n- Compose change: Environment added with both list-style entries and hardcoded — consistent with existing usage throughout the project. correctly supports override via host environment.Verdict
APPROVE — Clean fix: entrypoint-based repo clone correctly makes lib/env.sh available to dispatcher at runtime
Reviewed at
941cc4b| AGENTS.mdAI Review: APPROVE — Clean fix: entrypoint-based repo clone correctly makes lib/env.sh available to dispatcher at runtime