ruvector/tests/integration/distributed/Dockerfile.test
rUv 526a9c39c9 feat(test): Add distributed integration tests and Docker infrastructure for horizontal scaling
- Add Docker Compose 5-node cluster for Raft consensus testing
- Add comprehensive integration tests for ruvector-raft, ruvector-cluster, ruvector-replication
- Add performance benchmark tests with latency measurements
- Verify all 69 unit tests pass (23 raft + 20 cluster + 26 replication)

Tests cover:
- Raft consensus: leader election, log replication, term management
- Cluster management: node discovery, shard assignment, consistent hashing
- Replication: sync modes, conflict resolution, failover management

Closes #24

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-11-27 22:49:37 +00:00

27 lines
684 B
Text

# Ruvector Test Runner Dockerfile
FROM rust:1.87-slim-bookworm
# Install build dependencies
RUN apt-get update && apt-get install -y \
pkg-config \
libssl-dev \
curl \
&& rm -rf /var/lib/apt/lists/*
WORKDIR /app
# Copy workspace files
COPY Cargo.toml Cargo.lock ./
COPY crates/ ./crates/
COPY examples/ ./examples/
COPY tests/ ./tests/
# Pre-build test dependencies
RUN cargo build --tests -p ruvector-raft -p ruvector-cluster -p ruvector-replication
# Environment variables
ENV CLUSTER_NODES=""
ENV TEST_ITERATIONS=10000
ENV RUST_LOG=info
CMD ["cargo", "test", "-p", "ruvector-raft", "-p", "ruvector-cluster", "-p", "ruvector-replication", "--", "--nocapture"]