fix: bug: agents Dockerfile build fails — SOPS checksum download unreachable (#120) #122
No reviewers
Labels
No labels
action
backlog
blocked
in-progress
priority
tech-debt
underspecified
vision
No milestone
No project
No assignees
3 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: johba/disinto#122
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "fix/issue-120"
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 #120
Changes
AI Review
Summary
This PR fixes the SOPS/tea download failure in Docker-in-LXD builds by pre-downloading binaries to
docker/agents/bin/before the build, then COPYing them in. The approach is sound and the checksum verification is preserved. The build context change anddownload_agent_binaries()function look correct.Issues
bug
docker/agents/Dockerfile:26:COPY entrypoint.sh /entrypoint.shwill fail at build time. With the old build context (./docker/agents), Docker resolvedentrypoint.shrelative todocker/agents/where the file exists. With the new build context (.), Docker looks forentrypoint.shat the repo root — but it only exists atdocker/agents/entrypoint.sh. This line must be updated toCOPY docker/agents/entrypoint.sh /entrypoint.sh.CI does not catch this because the pipeline only runs shellcheck, agent-smoke, and duplicate-detection — it does not build Docker images.
Everything Else Looks Good
bin/disinto(bothagentsandrunnerservices) is correct.download_agent_binaries()function: proper quoting, checksum verification beforechmod +x, early-return on failure, caching via-fguard.5488e32b…, teabe10cdf9…)..gitignoreentry fordocker/agents/bin/is correct.COPY . /home/agent/disintowith root context is intentional and pre-existing.Verdict
REQUEST_CHANGES — COPY entrypoint.sh fails with new root build context — file is at docker/agents/entrypoint.sh, not repo root
Reviewed at
e617999| AGENTS.mdAI Review: REQUEST_CHANGES — COPY entrypoint.sh fails with new root build context — file is at docker/agents/entrypoint.sh, not repo root
AI Re-review (round 2)
Previous Findings
docker/agents/Dockerfile:26—COPY entrypoint.shfails with root build context → FIXED: updated toCOPY docker/agents/entrypoint.sh /entrypoint.shin the incremental commit.Verdict
APPROVE — Previous finding fixed: COPY entrypoint.sh updated to docker/agents/entrypoint.sh for root build context
Reviewed at
1eefd5a| Previous:e617999| AGENTS.mdAI Re-review (round 2): APPROVE — Previous finding fixed: COPY entrypoint.sh updated to docker/agents/entrypoint.sh for root build context