Files
seaweedfs/test/foundationdb/Dockerfile.fdb-arm64
Chris Lu c6b6ea40e6 filer store: add foundationdb (#7178)
* add foundationdb

* Update foundationdb_store.go

* fix

* apply the patch

* avoid panic on error

* address comments

* remove extra data

* address comments

* adds more debug messages

* fix range listing

* delete with prefix range; list with right start key

* fix docker files

* use the more idiomatic FoundationDB KeySelectors

* address comments

* proper errors

* fix API versions

* more efficient

* recursive deletion

* clean up

* clean up

* pagination, one transaction for deletion

* error checking

* Use fdb.Strinc() to compute the lexicographically next string and create a proper range

* fix docker

* Update README.md

* delete in batches

* delete in batches

* fix build

* add foundationdb build

* Updated FoundationDB Version

* Fixed glibc/musl Incompatibility (Alpine → Debian)

* Update container_foundationdb_version.yml

* build SeaweedFS

* build tag

* address comments

* separate transaction

* address comments

* fix build

* empty vs no data

* fixes

* add go test

* Install FoundationDB client libraries

* nil compare
2025-11-19 20:06:57 -08:00

52 lines
1.9 KiB
Docker

# FoundationDB server image for ARM64 using official prebuilt packages
FROM --platform=linux/arm64 ubuntu:22.04
ARG FOUNDATIONDB_VERSION=7.4.5
ENV FOUNDATIONDB_VERSION=${FOUNDATIONDB_VERSION}
# Install prerequisites
RUN apt-get update && apt-get install -y \
ca-certificates \
wget \
python3 \
libssl3 \
libboost-system1.74.0 \
libboost-filesystem1.74.0 \
&& rm -rf /var/lib/apt/lists/*
# Install FoundationDB server + client debs with checksum verification
RUN set -euo pipefail && \
apt-get update && \
case "${FOUNDATIONDB_VERSION}" in \
"7.4.5") \
CLIENT_SHA="f2176b86b7e1b561c3632b4e6e7efb82e3b8f57c2ff0d0ac4671e742867508aa"; \
SERVER_SHA="d7b081afbbabfdf2452cfbdc5c7c895165457ae32d91fc7f9489da921ab02e26"; \
;; \
*) \
echo "Unsupported FoundationDB version ${FOUNDATIONDB_VERSION} for ARM64 runtime" >&2; \
exit 1 ;; \
esac && \
for component in clients server; do \
if [ "${component}" = "clients" ]; then \
EXPECTED_SHA="${CLIENT_SHA}"; \
else \
EXPECTED_SHA="${SERVER_SHA}"; \
fi && \
PACKAGE="foundationdb-${component}_${FOUNDATIONDB_VERSION}-1_aarch64.deb" && \
PACKAGE_PATH="/tmp/${PACKAGE}" && \
wget --timeout=30 --tries=3 -O "${PACKAGE_PATH}" \
"https://github.com/apple/foundationdb/releases/download/${FOUNDATIONDB_VERSION}/${PACKAGE}" && \
echo "${EXPECTED_SHA} ${PACKAGE_PATH}" | sha256sum -c - && \
apt-get install -y "${PACKAGE_PATH}" && \
rm "${PACKAGE_PATH}"; \
done && \
rm -rf /var/lib/apt/lists/* && \
ldconfig && \
echo "✅ Installed FoundationDB ${FOUNDATIONDB_VERSION} (server + clients)"
# Prepare directories commonly bind-mounted by docker-compose
RUN mkdir -p /var/fdb/{logs,data,config} /usr/lib/foundationdb
# Provide a simple default command (docker-compose overrides this)
CMD ["/bin/bash"]