From b686f9cff0ed4a39efcc06ae1253c3c002afc0ac Mon Sep 17 00:00:00 2001 From: chrislu Date: Thu, 6 Nov 2025 19:19:53 -0800 Subject: [PATCH] fix docker files --- test/foundationdb/Dockerfile.build | 2 +- test/foundationdb/Dockerfile.fdb-arm64 | 7 +++++-- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/test/foundationdb/Dockerfile.build b/test/foundationdb/Dockerfile.build index 632e803af..cb12ee565 100644 --- a/test/foundationdb/Dockerfile.build +++ b/test/foundationdb/Dockerfile.build @@ -48,7 +48,7 @@ RUN echo "🔨 Building SeaweedFS with FoundationDB support..." && \ ls -la /usr/lib/libfdb_c* 2>/dev/null || echo "No libfdb_c libraries" && \ echo "CGO_CFLAGS: $CGO_CFLAGS" && \ echo "CGO_LDFLAGS: $CGO_LDFLAGS" && \ - go build -tags foundationdb -ldflags="-w -s" -o weed ./weed && \ + go build -tags foundationdb -ldflags="-w -s" -o ./weed/weed ./weed && \ chmod +x ./weed/weed && \ echo "✅ Build successful!" && \ ./weed/weed version diff --git a/test/foundationdb/Dockerfile.fdb-arm64 b/test/foundationdb/Dockerfile.fdb-arm64 index 775cd5180..0aeef0e83 100644 --- a/test/foundationdb/Dockerfile.fdb-arm64 +++ b/test/foundationdb/Dockerfile.fdb-arm64 @@ -65,10 +65,13 @@ COPY --from=builder /tmp/foundationdb/packaging/docker/scripts/* /var/fdb/script RUN chmod +x /var/fdb/scripts/* # Set environment variables -ENV FDB_NETWORKING_MODE=host +# NOTE: These defaults are for single-node testing only. +# For multi-node Docker Compose clusters, override PUBLIC_IP with the container's +# network-resolvable hostname/IP via docker-compose environment settings. +ENV FDB_NETWORKING_MODE=container ENV FDB_COORDINATOR_PORT=4500 ENV FDB_PORT=4501 -ENV PUBLIC_IP=127.0.0.1 +ENV PUBLIC_IP=auto # Expose ports EXPOSE 4500 4501