Skip to content

Commit c600b92

Browse files
Merge remote-tracking branch 'origin/update.redisearch' into docker.update
2 parents 58bf9fc + ad7d53d commit c600b92

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

Dockerfile

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff 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
6768
WORKDIR /app
6869

@@ -75,6 +76,7 @@ COPY --from=builder /code /app
7576

7677
# Create directories with proper permissions
7778
RUN mkdir -p /app/results /app/datasets && \
79+
7880
chmod -R 777 /app/results /app/datasets && \
7981
chmod -R 755 /app
8082

@@ -89,6 +91,7 @@ fi\n\
8991
exec python "$@"' > /app/entrypoint.sh && \
9092
chmod +x /app/entrypoint.sh
9193

94+
9295
# Health check
9396
HEALTHCHECK --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 \
97100
EXPOSE 6379 6380
98101

99102
# Set entrypoint
103+
100104
ENTRYPOINT ["/app/entrypoint.sh"]
101105

106+
102107
# Default command (show help)
103108
CMD ["run.py", "--help"]
104109

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,7 @@ docker pull filipe958/vector-db-benchmark:latest
8484
# Run with help
8585
docker run --rm filipe958/vector-db-benchmark:latest run.py --help
8686

87+
8788
# Basic Redis benchmark with local Redis (recommended)
8889
docker 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
9394
docker 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:
103105
docker run -d --name redis-test -p 6379:6379 redis:8.2-rc1-bookworm
104106

105107
# Run benchmark against Redis
108+
106109
docker 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
114118
docker stop redis-test && docker rm redis-test
115119
```

0 commit comments

Comments
 (0)