# Dockerfile for RDMA Mount Performance Tests
FROM ubuntu:22.04

# Install dependencies
RUN apt-get update && apt-get install -y \
    curl \
    wget \
    ca-certificates \
    jq \
    bc \
    time \
    util-linux \
    coreutils \
    fio \
    iozone3 \
    && rm -rf /var/lib/apt/lists/*

# Create test directories
RUN mkdir -p /usr/local/bin /performance-results

# Copy test scripts
COPY scripts/run-performance-tests.sh /usr/local/bin/run-performance-tests.sh
RUN chmod +x /usr/local/bin/*.sh

# Default command
CMD ["/usr/local/bin/run-performance-tests.sh"]
