28 lines
684 B
Docker
28 lines
684 B
Docker
# 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"]
|