Browse Source

fix docker files

pull/7178/head
chrislu 2 months ago
parent
commit
b686f9cff0
  1. 2
      test/foundationdb/Dockerfile.build
  2. 7
      test/foundationdb/Dockerfile.fdb-arm64

2
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

7
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

Loading…
Cancel
Save