File tree Expand file tree Collapse file tree 2 files changed +9
-0
lines changed Expand file tree Collapse file tree 2 files changed +9
-0
lines changed Original file line number Diff line number Diff line change @@ -63,6 +63,7 @@ RUN apt-get update && apt-get install -y \
6363 wget \
6464 && rm -rf /var/lib/apt/lists/*
6565
66+
6667# Set working directory
6768WORKDIR /app
6869
@@ -75,6 +76,7 @@ COPY --from=builder /code /app
7576
7677# Create directories with proper permissions
7778RUN mkdir -p /app/results /app/datasets && \
79+
7880 chmod -R 777 /app/results /app/datasets && \
7981 chmod -R 755 /app
8082
8991exec python "$@"' > /app/entrypoint.sh && \
9092 chmod +x /app/entrypoint.sh
9193
94+
9295# Health check
9396HEALTHCHECK --interval=30s --timeout=10s --start-period=5s --retries=3 \
9497 CMD python -c "import sys; sys.exit(0)" || exit 1
@@ -97,8 +100,10 @@ HEALTHCHECK --interval=30s --timeout=10s --start-period=5s --retries=3 \
97100EXPOSE 6379 6380
98101
99102# Set entrypoint
103+
100104ENTRYPOINT ["/app/entrypoint.sh" ]
101105
106+
102107# Default command (show help)
103108CMD ["run.py" , "--help" ]
104109
Original file line number Diff line number Diff line change @@ -84,6 +84,7 @@ docker pull filipe958/vector-db-benchmark:latest
8484# Run with help
8585docker run --rm filipe958/vector-db-benchmark:latest run.py --help
8686
87+
8788# Basic Redis benchmark with local Redis (recommended)
8889docker run --rm -v $( pwd) /results:/app/results --network=host \
8990 filipe958/vector-db-benchmark:latest \
@@ -92,6 +93,7 @@ docker run --rm -v $(pwd)/results:/app/results --network=host \
9293# Without results output
9394docker run --rm --network=host filipe958/vector-db-benchmark:latest \
9495 run.py --host localhost --engines redis-default-simple --dataset random-100
96+
9597```
9698
9799### Using with Redis
@@ -103,13 +105,15 @@ For testing with Redis, start a Redis container first:
103105docker run -d --name redis-test -p 6379:6379 redis:8.2-rc1-bookworm
104106
105107# Run benchmark against Redis
108+
106109docker run --rm -v $( pwd) /results:/app/results --network=host \
107110 filipe958/vector-db-benchmark:latest \
108111 run.py --host localhost --engines redis-default-simple --dataset random-100
109112
110113# Or use the convenience script
111114./docker-run.sh -H localhost -e redis-default-simple -d random-100
112115
116+
113117# Clean up Redis container when done
114118docker stop redis-test && docker rm redis-test
115119```
You can’t perform that action at this time.
0 commit comments