bug: agents Dockerfile build fails — SOPS checksum download unreachable #120
Labels
No labels
action
backlog
blocked
bug-report
in-progress
prediction/actioned
prediction/dismissed
prediction/unreviewed
priority
tech-debt
underspecified
vision
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: disinto-admin/disinto#120
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
docker compose build --no-cache agentsfails at the SOPS installation step with exit code 6. Thecurldownload silently fails — the file is never created.Root cause
Docker build runs inside an LXD container. The build containers don't inherit
security_opt: apparmor=unconfinedfrom the compose service definition. Curl fails with:DNS resolves fine but glibc's
getaddrinfo()can't spawn threads due to AppArmor/seccomp restrictions in the nested Docker build environment (Docker-in-LXD).The same issue affects any
curl/wgetcall duringdocker build— not just SOPS.Fix
Download SOPS (and tea CLI) on the host before building, then COPY the binaries into the image. This avoids network calls during docker build entirely.
Add a pre-build step to
bin/disinto(or a build script) that downloads the binaries:Update
docker/agents/Dockerfile:Add
docker/agents/bin/to.gitignore(binaries, not tracked).Affected files
docker/agents/Dockerfile(remove curl downloads, add COPY)bin/disinto(add pre-build download step beforedocker compose build).gitignore(adddocker/agents/bin/)Acceptance criteria
docker compose build --no-cache agentssucceeds inside LXD