mirror of
https://github.com/hanzoai/s3.git
synced 2026-10-30 14:59:09 +00:00
hanzoai/s3 was an AGPL-3.0 MinIO fork whose network-copyleft blocks embedding
and reselling as a managed service. Replace it wholesale with a fork of
SeaweedFS (github.com/seaweedfs/seaweedfs, Apache-2.0, Go) which ships a
built-in S3 gateway + Filer.
- License: AGPL-3.0 -> Apache-2.0 (upstream LICENSE kept verbatim, incl.
"Copyright 2025 Chris Lu"); NOTICE added crediting SeaweedFS. No AGPL/BUSL/
SSPL/GPL or enterprise ("ee") files remain.
- Module: go.mod path set to github.com/hanzoai/s3 with a self-replace
(replace github.com/seaweedfs/seaweedfs => ./) so the ~1800 internal Go files
keep their upstream import paths with zero churn. Internal identifiers and
import paths are intentionally NOT renamed.
- CLI rebrand: the binary is built as `s3` (was `weed`); root usage, per-command
help/usage/flag strings, shell autocomplete program name, and the product name
in CLI output now read "Hanzo S3" / `s3`. Users never see `weed`.
(e.g. `s3 server`, `s3 filer`, `s3 master`, `s3 volume`, `s3 s3`, `s3 mount`.)
- Build: `make` (or `go build -o s3 ./weed`) builds the `s3` binary green;
`cmd/weed-db` and `cmd/weed-sql` also build; `go vet ./weed/command/` clean.
- README/LLM.md rewritten for Hanzo S3; AGENTS.md/CLAUDE.md symlinks preserved.
- Dropped a 33MB prebuilt Mach-O `stress` binary upstream had committed; `.gitignore`
updated to ignore the `s3` build output.
53 lines
2.0 KiB
Docker
53 lines
2.0 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
|
|
SHELL ["/bin/bash", "-c"]
|
|
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"]
|