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 \
63
63
wget \
64
64
&& rm -rf /var/lib/apt/lists/*
65
65
66
+
66
67
# Set working directory
67
68
WORKDIR /app
68
69
@@ -75,6 +76,7 @@ COPY --from=builder /code /app
75
76
76
77
# Create directories with proper permissions
77
78
RUN mkdir -p /app/results /app/datasets && \
79
+
78
80
chmod -R 777 /app/results /app/datasets && \
79
81
chmod -R 755 /app
80
82
89
91
exec python "$@"' > /app/entrypoint.sh && \
90
92
chmod +x /app/entrypoint.sh
91
93
94
+
92
95
# Health check
93
96
HEALTHCHECK --interval=30s --timeout=10s --start-period=5s --retries=3 \
94
97
CMD python -c "import sys; sys.exit(0)" || exit 1
@@ -97,8 +100,10 @@ HEALTHCHECK --interval=30s --timeout=10s --start-period=5s --retries=3 \
97
100
EXPOSE 6379 6380
98
101
99
102
# Set entrypoint
103
+
100
104
ENTRYPOINT ["/app/entrypoint.sh" ]
101
105
106
+
102
107
# Default command (show help)
103
108
CMD ["run.py" , "--help" ]
104
109
Original file line number Diff line number Diff line change @@ -84,6 +84,7 @@ docker pull filipe958/vector-db-benchmark:latest
84
84
# Run with help
85
85
docker run --rm filipe958/vector-db-benchmark:latest run.py --help
86
86
87
+
87
88
# Basic Redis benchmark with local Redis (recommended)
88
89
docker run --rm -v $( pwd) /results:/app/results --network=host \
89
90
filipe958/vector-db-benchmark:latest \
@@ -92,6 +93,7 @@ docker run --rm -v $(pwd)/results:/app/results --network=host \
92
93
# Without results output
93
94
docker run --rm --network=host filipe958/vector-db-benchmark:latest \
94
95
run.py --host localhost --engines redis-default-simple --dataset random-100
96
+
95
97
```
96
98
97
99
### Using with Redis
@@ -103,13 +105,15 @@ For testing with Redis, start a Redis container first:
103
105
docker run -d --name redis-test -p 6379:6379 redis:8.2-rc1-bookworm
104
106
105
107
# Run benchmark against Redis
108
+
106
109
docker run --rm -v $( pwd) /results:/app/results --network=host \
107
110
filipe958/vector-db-benchmark:latest \
108
111
run.py --host localhost --engines redis-default-simple --dataset random-100
109
112
110
113
# Or use the convenience script
111
114
./docker-run.sh -H localhost -e redis-default-simple -d random-100
112
115
116
+
113
117
# Clean up Redis container when done
114
118
docker stop redis-test && docker rm redis-test
115
119
```
You can’t perform that action at this time.
0 commit comments