mirror of
https://github.com/profullstack/agentbbs.git
synced 2026-12-01 01:14:47 +00:00
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 <noreply@anthropic.com>
This commit is contained in:
parent
e8ac55e27a
commit
757f6dad73
1 changed files with 5 additions and 0 deletions
5
setup.sh
5
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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue