From 757f6dad73e1cd2a0e20ef5bad191ee52832e86a Mon Sep 17 00:00:00 2001 From: Anthony Ettinger Date: Mon, 30 Nov 2026 11:28:32 +0000 Subject: [PATCH] fix(setup): make pods/ readable so the pod image actually rebuilds The checkout is written by root under a restrictive umask, so pods/Containerfile landed 0600 and the rootless podman build (as the service user) failed with "open /opt/agentbbs/pods/Containerfile: permission denied". setup.sh hides build output and keeps the old image on failure, so localhost/agentbbs-pod:latest on bbs stayed 7 weeks old and #183 (c0mpute in pods) never reached members. Co-Authored-By: Claude Opus 5.5 --- setup.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/setup.sh b/setup.sh index 977257e..9449c9c 100755 --- a/setup.sh +++ b/setup.sh @@ -441,6 +441,11 @@ sudo -u "$SVC_USER" XDG_RUNTIME_DIR="/run/user/$SVC_UID" \ # failure we keep the base image rather than break pod launches. if [ -f "$SRC_DIR/pods/Containerfile" ]; then log "building member pod image (localhost/agentbbs-pod:latest)" + # The checkout is written by root under umask 027/077, so pods/ lands 0600 + # and the rootless build (as $SVC_USER) failed with "open .../Containerfile: + # permission denied", silently keeping a stale image. The build context holds + # no secrets: make it world-readable before building. + chmod -R a+rX "$SRC_DIR/pods" if sudo -u "$SVC_USER" XDG_RUNTIME_DIR="/run/user/$SVC_UID" \ podman build -t localhost/agentbbs-pod:latest \ -f "$SRC_DIR/pods/Containerfile" "$SRC_DIR/pods" >/dev/null 2>&1; then