bug: agents Dockerfile build fails — SOPS checksum download unreachable #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