From 6a848c38cc74b4e8feb7fdd78c3b19520e0ccdfe Mon Sep 17 00:00:00 2001 From: archipelago Date: Mon, 20 Jul 2026 16:15:59 -0400 Subject: [PATCH] fix(iso): extract nostr-rs-relay from its real path /usr/src/app MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The relay image was rebuilt to the standard nostr-rs-relay layout — WORKDIR /usr/src/app, execs ./nostr-rs-relay — but the build still cp'd from the old /usr/local/bin path, so extraction silently produced nothing. Once the missing-binary guard was added, that silent miss became a hard build failure. Verified the binary is a valid amd64 ELF (GLIBC 2.34, under Debian 13's 2.40) at /usr/src/app/nostr-rs-relay. Co-Authored-By: Claude Fable 5 --- image-recipe/_archived/build-auto-installer-iso.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/image-recipe/_archived/build-auto-installer-iso.sh b/image-recipe/_archived/build-auto-installer-iso.sh index fdf425f7..99906345 100755 --- a/image-recipe/_archived/build-auto-installer-iso.sh +++ b/image-recipe/_archived/build-auto-installer-iso.sh @@ -1199,7 +1199,11 @@ if [ -z "$RELAY_IMAGE" ]; then fi RELAY_CONTAINER=$($CONTAINER_CMD create 146.59.87.168:3000/lfg2025/nostr-rs-relay:0.9.0 2>/dev/null) || true if [ -n "$RELAY_CONTAINER" ]; then - $CONTAINER_CMD cp "$RELAY_CONTAINER:/usr/local/bin/nostr-rs-relay" "$ARCH_DIR/bin/nostr-rs-relay" 2>/dev/null && \ + # The relay image builds to its WORKDIR /usr/src/app and execs + # ./nostr-rs-relay from there (not /usr/local/bin — that path was from an + # older image build and silently broke extraction once the image was + # rebuilt to the standard layout). + $CONTAINER_CMD cp "$RELAY_CONTAINER:/usr/src/app/nostr-rs-relay" "$ARCH_DIR/bin/nostr-rs-relay" 2>/dev/null && \ chmod +x "$ARCH_DIR/bin/nostr-rs-relay" && \ echo " ✅ nostr-rs-relay binary extracted ($(du -h "$ARCH_DIR/bin/nostr-rs-relay" | cut -f1))" $CONTAINER_CMD rm "$RELAY_CONTAINER" 2>/dev/null || true