Files
s3/Dockerfile
zeekay 62eb4f95f0 rebrand: rename weed→s3, strip all SeaweedFS/weed branding → Hanzo S3
Full internal rename — build-verified, every module green (root + s3-rdma-sidecar
+ telemetry/server + all test modules):
- Dirs: weed/→s3/ (main tree); cmd/weed-{db,sql}→cmd/s3-{db,sql};
  seaweed-volume→s3-volume; seaweedfs-rdma-sidecar→s3-rdma-sidecar;
  s3/mount/weedfs_*.go→s3fs_*.go (~113 path renames).
- Imports: github.com/hanzoai/s3/weed/ → /s3/ across 1700+ files.
- gRPC proto services Seaweed/SeaweedFiler/SeaweedMessaging/... → Hanzo*
  (8 services) via full protoc regeneration (correct descriptors, no sed-corruption).
- Brand SeaweedFS/Seaweed/seaweed → Hanzo/hanzo; internal X-Seaweedfs-* headers
  → X-Hanzo-*; .seaweedfs config dir → .s3.
- CLI is `s3`: go install github.com/hanzoai/s3/s3@latest | make install | Docker.
  install.sh rewritten as a Hanzo S3 installer.
- External forks github.com/seaweedfs/{raft,go-fuse,goexif,cockroachdb-parser}
  kept verbatim — immutable third-party module paths; NOTICE retained.

Residual (cosmetic, non-build): kafka loadtest test-proto package com.seaweedfs.loadtest.
2026-06-21 19:58:27 -07:00

28 lines
1.0 KiB
Docker

# Hanzo S3 — S3-compatible object storage (Hanzo engine).
# Builds the `s3` binary from github.com/hanzoai/s3 (rebranded Hanzo).
FROM golang:1.26-alpine AS build
RUN apk add --no-cache git
WORKDIR /src
COPY go.mod go.sum ./
RUN go mod download
COPY . .
ARG VERSION=dev
ARG COMMIT=unknown
RUN CGO_ENABLED=0 go build -trimpath \
-ldflags "-s -w -X github.com/hanzoai/s3/s3/util/version.COMMIT=${COMMIT}" \
-o /out/s3 ./s3
FROM alpine:3.21
RUN apk add --no-cache ca-certificates fuse3 curl && mkdir -p /data
COPY --from=build /out/s3 /usr/bin/s3
LABEL org.opencontainers.image.title="Hanzo S3" \
org.opencontainers.image.description="S3-compatible object storage (Hanzo engine)" \
org.opencontainers.image.source="https://github.com/hanzoai/s3" \
org.opencontainers.image.vendor="Hanzo AI" \
org.opencontainers.image.licenses="Apache-2.0"
VOLUME /data
# S3 API :9000 | master :9333 | volume :8080 | filer :8888
EXPOSE 9000 9333 8080 8888
ENTRYPOINT ["s3"]
CMD ["server", "-s3", "-s3.port=9000", "-dir=/data"]