-
Notifications
You must be signed in to change notification settings - Fork 750
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
7 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,13 @@ | ||
FROM redislabs/redisearch as redisearch | ||
FROM ann-benchmarks | ||
|
||
# Install Redis | ||
RUN apt-get update && apt-get install -y curl lsb-core | ||
RUN curl -fsSL https://packages.redis.io/gpg | gpg --dearmor -o /usr/share/keyrings/redis-archive-keyring.gpg | ||
RUN echo "deb [signed-by=/usr/share/keyrings/redis-archive-keyring.gpg] https://packages.redis.io/deb $(lsb_release -cs) main" | tee /etc/apt/sources.list.d/redis.list | ||
RUN apt-get update | ||
RUN apt-get install -y redis | ||
|
||
COPY --from=redisearch /usr/lib/redis/modules/redisearch.so /usr/lib/redisearch.so | ||
RUN ls -al /usr/lib | ||
|
||
# Sanity check that redis-server can run | ||
RUN redis-server --loadmodule /usr/lib/redisearch.so | ||
COPY --from=redisearch /usr/lib/redis/modules/redisearch.so /usr/lib/redis/modules/redisearch.so | ||
|
||
RUN pip3 install redisearch redis |