mirror of
https://github.com/hanzoai/s3.git
synced 2026-10-30 14:59:09 +00:00
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.
78 lines
1.9 KiB
Docker
78 lines
1.9 KiB
Docker
# RDMA Simulation Container with Soft-RoCE (RXE)
|
|
# This container enables software RDMA over regular Ethernet
|
|
|
|
FROM ubuntu:22.04
|
|
|
|
# Install RDMA and networking tools
|
|
RUN apt-get update && apt-get install -y \
|
|
# System utilities
|
|
sudo \
|
|
# RDMA core libraries
|
|
libibverbs1 \
|
|
libibverbs-dev \
|
|
librdmacm1 \
|
|
librdmacm-dev \
|
|
rdma-core \
|
|
ibverbs-utils \
|
|
infiniband-diags \
|
|
# Network tools
|
|
iproute2 \
|
|
iputils-ping \
|
|
net-tools \
|
|
# Build tools
|
|
build-essential \
|
|
pkg-config \
|
|
cmake \
|
|
# UCX dependencies
|
|
libnuma1 \
|
|
libnuma-dev \
|
|
# UCX library (pre-built) - try to install but don't fail if not available
|
|
# libucx0 \
|
|
# libucx-dev \
|
|
# Debugging tools
|
|
strace \
|
|
gdb \
|
|
valgrind \
|
|
# Utilities
|
|
curl \
|
|
wget \
|
|
vim \
|
|
htop \
|
|
&& rm -rf /var/lib/apt/lists/*
|
|
|
|
# Try to install UCX tools (optional, may not be available in all repositories)
|
|
RUN apt-get update && \
|
|
(apt-get install -y ucx-tools || echo "UCX tools not available in repository") && \
|
|
rm -rf /var/lib/apt/lists/*
|
|
|
|
# Create rdmauser for security (avoid conflict with system rdma group)
|
|
RUN useradd -m -s /bin/bash -G sudo,rdma rdmauser && \
|
|
echo "rdmauser ALL=(ALL) NOPASSWD:ALL" >> /etc/sudoers
|
|
|
|
# Create directories for RDMA setup
|
|
RUN mkdir -p /opt/rdma-sim /var/log/rdma
|
|
|
|
# Copy RDMA simulation scripts
|
|
COPY docker/scripts/setup-soft-roce.sh /opt/rdma-sim/
|
|
COPY docker/scripts/test-rdma.sh /opt/rdma-sim/
|
|
COPY docker/scripts/ucx-info.sh /opt/rdma-sim/
|
|
|
|
# Make scripts executable
|
|
RUN chmod +x /opt/rdma-sim/*.sh
|
|
|
|
# Set working directory
|
|
WORKDIR /opt/rdma-sim
|
|
|
|
# Switch to rdmauser
|
|
USER rdmauser
|
|
|
|
# Default command
|
|
CMD ["/bin/bash"]
|
|
|
|
# Health check for RDMA devices
|
|
HEALTHCHECK --interval=30s --timeout=10s --start-period=5s --retries=3 \
|
|
CMD /opt/rdma-sim/test-rdma.sh || exit 1
|
|
|
|
# Expose common RDMA ports
|
|
EXPOSE 18515 4791 4792
|