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.
102 lines
2.5 KiB
YAML
102 lines
2.5 KiB
YAML
services:
|
|
# OpenBao server for KMS integration testing
|
|
openbao:
|
|
image: ghcr.io/openbao/openbao:latest
|
|
ports:
|
|
- "8200:8200"
|
|
environment:
|
|
- BAO_DEV_ROOT_TOKEN_ID=root-token-for-testing
|
|
- BAO_DEV_LISTEN_ADDRESS=0.0.0.0:8200
|
|
- BAO_LOCAL_CONFIG={"backend":{"file":{"path":"/bao/data"}},"default_lease_ttl":"168h","max_lease_ttl":"720h","ui":true,"disable_mlock":true}
|
|
command:
|
|
- bao
|
|
- server
|
|
- -dev
|
|
- -dev-root-token-id=root-token-for-testing
|
|
- -dev-listen-address=0.0.0.0:8200
|
|
volumes:
|
|
- openbao-data:/bao/data
|
|
healthcheck:
|
|
test: ["CMD", "wget", "--quiet", "--tries=1", "--spider", "http://localhost:8200/v1/sys/health"]
|
|
interval: 5s
|
|
timeout: 3s
|
|
retries: 5
|
|
start_period: 10s
|
|
|
|
# HashiCorp Vault for compatibility testing (alternative to OpenBao)
|
|
vault:
|
|
image: vault:latest
|
|
ports:
|
|
- "8201:8200"
|
|
environment:
|
|
- VAULT_DEV_ROOT_TOKEN_ID=root-token-for-testing
|
|
- VAULT_DEV_LISTEN_ADDRESS=0.0.0.0:8200
|
|
command:
|
|
- vault
|
|
- server
|
|
- -dev
|
|
- -dev-root-token-id=root-token-for-testing
|
|
- -dev-listen-address=0.0.0.0:8200
|
|
cap_add:
|
|
- IPC_LOCK
|
|
healthcheck:
|
|
test: ["CMD", "wget", "--quiet", "--tries=1", "--spider", "http://localhost:8200/v1/sys/health"]
|
|
interval: 5s
|
|
timeout: 3s
|
|
retries: 5
|
|
start_period: 10s
|
|
|
|
# SeaweedFS components for end-to-end testing
|
|
seaweedfs-master:
|
|
image: chrislusf/seaweedfs:latest
|
|
ports:
|
|
- "9333:9333"
|
|
command:
|
|
- master
|
|
- -ip=seaweedfs-master
|
|
- -volumeSizeLimitMB=1024
|
|
volumes:
|
|
- seaweedfs-master-data:/data
|
|
|
|
seaweedfs-volume:
|
|
image: chrislusf/seaweedfs:latest
|
|
ports:
|
|
- "8080:8080"
|
|
command:
|
|
- volume
|
|
- -master=seaweedfs-master:9333
|
|
- -ip=seaweedfs-volume
|
|
- -publicUrl=seaweedfs-volume:8080
|
|
depends_on:
|
|
- seaweedfs-master
|
|
volumes:
|
|
- seaweedfs-volume-data:/data
|
|
|
|
seaweedfs-filer:
|
|
image: chrislusf/seaweedfs:latest
|
|
ports:
|
|
- "8888:8888"
|
|
- "8333:8333" # S3 API port
|
|
command:
|
|
- filer
|
|
- -master=seaweedfs-master:9333
|
|
- -ip=seaweedfs-filer
|
|
- -s3
|
|
- -s3.port=8333
|
|
depends_on:
|
|
- seaweedfs-master
|
|
- seaweedfs-volume
|
|
volumes:
|
|
- ./filer.toml:/etc/seaweedfs/filer.toml
|
|
- seaweedfs-filer-data:/data
|
|
|
|
volumes:
|
|
openbao-data:
|
|
seaweedfs-master-data:
|
|
seaweedfs-volume-data:
|
|
seaweedfs-filer-data:
|
|
|
|
networks:
|
|
default:
|
|
name: seaweedfs-kms-test
|