mirror of
https://github.com/hanzoai/s3.git
synced 2026-11-03 03:07:41 +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.
158 lines
4.0 KiB
YAML
158 lines
4.0 KiB
YAML
services:
|
|
# SeaweedFS Master Server
|
|
seaweedfs-master:
|
|
image: chrislusf/seaweedfs:latest
|
|
container_name: seaweedfs-master
|
|
command: master -ip=seaweedfs-master -port=9333 -mdir=/data
|
|
ports:
|
|
- "9333:9333"
|
|
volumes:
|
|
- master-data:/data
|
|
networks:
|
|
- seaweedfs-rdma
|
|
healthcheck:
|
|
test: ["CMD", "curl", "-f", "http://localhost:9333/cluster/status"]
|
|
interval: 10s
|
|
timeout: 5s
|
|
retries: 3
|
|
start_period: 10s
|
|
|
|
# SeaweedFS Volume Server
|
|
seaweedfs-volume:
|
|
image: chrislusf/seaweedfs:latest
|
|
container_name: seaweedfs-volume
|
|
command: volume -master=seaweedfs-master:9333 -ip=seaweedfs-volume -port=8080 -dir=/data
|
|
ports:
|
|
- "8080:8080"
|
|
volumes:
|
|
- volume-data:/data
|
|
depends_on:
|
|
seaweedfs-master:
|
|
condition: service_healthy
|
|
networks:
|
|
- seaweedfs-rdma
|
|
healthcheck:
|
|
test: ["CMD", "curl", "-f", "http://localhost:8080/status"]
|
|
interval: 10s
|
|
timeout: 5s
|
|
retries: 3
|
|
start_period: 15s
|
|
|
|
# Rust RDMA Engine
|
|
rdma-engine:
|
|
build:
|
|
context: .
|
|
dockerfile: Dockerfile.rdma-engine.simple
|
|
container_name: rdma-engine
|
|
environment:
|
|
- RUST_LOG=debug
|
|
- RDMA_SOCKET_PATH=/tmp/rdma-engine.sock
|
|
volumes:
|
|
- rdma-socket:/tmp
|
|
# Note: hugepages mount commented out to avoid host system requirements
|
|
# - /dev/hugepages:/dev/hugepages
|
|
# Privileged mode for RDMA access (in production, use specific capabilities)
|
|
privileged: true
|
|
networks:
|
|
- seaweedfs-rdma
|
|
command: ["./rdma-engine-server", "--debug", "--ipc-socket", "/tmp/rdma-engine.sock"]
|
|
healthcheck:
|
|
test: ["CMD", "test", "-S", "/tmp/rdma-engine.sock"]
|
|
interval: 5s
|
|
timeout: 3s
|
|
retries: 5
|
|
start_period: 10s
|
|
|
|
# Go RDMA Sidecar / Demo Server
|
|
rdma-sidecar:
|
|
build:
|
|
context: .
|
|
dockerfile: Dockerfile.sidecar
|
|
container_name: rdma-sidecar
|
|
ports:
|
|
- "8081:8081"
|
|
environment:
|
|
- RDMA_SOCKET_PATH=/tmp/rdma-engine.sock
|
|
- VOLUME_SERVER_URL=http://seaweedfs-volume:8080
|
|
- DEBUG=true
|
|
volumes:
|
|
- rdma-socket:/tmp
|
|
depends_on:
|
|
rdma-engine:
|
|
condition: service_healthy
|
|
seaweedfs-volume:
|
|
condition: service_healthy
|
|
networks:
|
|
- seaweedfs-rdma
|
|
command: [
|
|
"./demo-server",
|
|
"--port", "8081",
|
|
"--rdma-socket", "/tmp/rdma-engine.sock",
|
|
"--volume-server", "http://seaweedfs-volume:8080",
|
|
"--enable-rdma",
|
|
"--debug"
|
|
]
|
|
healthcheck:
|
|
test: ["CMD", "curl", "-f", "http://localhost:8081/health"]
|
|
interval: 10s
|
|
timeout: 5s
|
|
retries: 3
|
|
start_period: 15s
|
|
|
|
# Test Client for Integration Testing
|
|
test-client:
|
|
build:
|
|
context: .
|
|
dockerfile: Dockerfile.test-client
|
|
container_name: test-client
|
|
environment:
|
|
- RDMA_SOCKET_PATH=/tmp/rdma-engine.sock
|
|
- SIDECAR_URL=http://rdma-sidecar:8081
|
|
- SEAWEEDFS_MASTER=http://seaweedfs-master:9333
|
|
- SEAWEEDFS_VOLUME=http://seaweedfs-volume:8080
|
|
volumes:
|
|
- rdma-socket:/tmp
|
|
depends_on:
|
|
rdma-sidecar:
|
|
condition: service_healthy
|
|
networks:
|
|
- seaweedfs-rdma
|
|
profiles:
|
|
- testing
|
|
command: ["tail", "-f", "/dev/null"] # Keep container running for manual testing
|
|
|
|
# Integration Test Runner
|
|
integration-tests:
|
|
build:
|
|
context: .
|
|
dockerfile: Dockerfile.test-client
|
|
container_name: integration-tests
|
|
environment:
|
|
- RDMA_SOCKET_PATH=/tmp/rdma-engine.sock
|
|
- SIDECAR_URL=http://rdma-sidecar:8081
|
|
- SEAWEEDFS_MASTER=http://seaweedfs-master:9333
|
|
- SEAWEEDFS_VOLUME=http://seaweedfs-volume:8080
|
|
volumes:
|
|
- rdma-socket:/tmp
|
|
- ./tests:/tests
|
|
depends_on:
|
|
rdma-sidecar:
|
|
condition: service_healthy
|
|
networks:
|
|
- seaweedfs-rdma
|
|
profiles:
|
|
- testing
|
|
command: ["/tests/run-integration-tests.sh"]
|
|
|
|
volumes:
|
|
master-data:
|
|
driver: local
|
|
volume-data:
|
|
driver: local
|
|
rdma-socket:
|
|
driver: local
|
|
|
|
networks:
|
|
seaweedfs-rdma:
|
|
driver: bridge
|