forked from ruvnet/RuVector
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
63 lines (48 loc) · 1.41 KB
/
Dockerfile
File metadata and controls
63 lines (48 loc) · 1.41 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
# RuVector Benchmark Container
# Containerized benchmarking environment with k6 and all dependencies
FROM loadimpact/k6:0.48.0 as k6
FROM node:20-alpine
# Install dependencies
RUN apk add --no-cache \
bash \
curl \
git \
python3 \
py3-pip
# Copy k6 binary from k6 image
COPY --from=k6 /usr/bin/k6 /usr/bin/k6
# Set working directory
WORKDIR /benchmarks
# Copy package files
COPY package*.json ./
# Install Node.js dependencies
RUN npm install -g typescript ts-node && \
npm install --production
# Copy benchmark files
COPY *.ts ./
COPY *.html ./
COPY *.md ./
COPY setup.sh ./
# Make scripts executable
RUN chmod +x setup.sh
# Create results directory
RUN mkdir -p results
# Set environment variables
ENV BASE_URL=http://localhost:8080
ENV PARALLEL=1
ENV ENABLE_HOOKS=false
ENV LOG_LEVEL=info
ENV NODE_OPTIONS=--max-old-space-size=4096
# Volume for results
VOLUME ["/benchmarks/results"]
# Default command
CMD ["ts-node", "benchmark-runner.ts", "list"]
# Health check
HEALTHCHECK --interval=30s --timeout=10s --start-period=5s --retries=3 \
CMD k6 version || exit 1
# Labels
LABEL org.opencontainers.image.title="RuVector Benchmarks"
LABEL org.opencontainers.image.description="Enterprise-grade benchmarking suite for RuVector"
LABEL org.opencontainers.image.version="1.0.0"
LABEL org.opencontainers.image.vendor="RuVector Team"
LABEL org.opencontainers.image.source="https://github.com/ruvnet/ruvector"