-
Notifications
You must be signed in to change notification settings - Fork 28
/
Dockerfile.preview
34 lines (30 loc) · 1.58 KB
/
Dockerfile.preview
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
FROM redislabs/redisai:preview-cpu-x64-bionic as redisai
FROM redislabs/redisearch:2.2.0 as redisearch
FROM redislabs/redisgraph:preview as redisgraph
FROM redislabs/redistimeseries:preview as redistimeseries
FROM redislabs/rejson:2.0.0 as rejson
FROM redislabs/rebloom:preview as rebloom
FROM redislabs/redisgears:preview
ENV LD_LIBRARY_PATH /usr/lib/redis/modules
ENV REDISGRAPH_DEPS libgomp1 git
WORKDIR /data
RUN set -ex; \
apt-get -qq update; \
apt-get install -y --no-install-recommends ${REDISGRAPH_DEPS}
COPY --from=redisai ${LD_LIBRARY_PATH}/redisai.so ${LD_LIBRARY_PATH}/
COPY --from=redisai ${LD_LIBRARY_PATH}/backends ${LD_LIBRARY_PATH}/backends
COPY --from=redisearch ${LD_LIBRARY_PATH}/redisearch.so ${LD_LIBRARY_PATH}/
COPY --from=redisgraph ${LD_LIBRARY_PATH}/redisgraph.so ${LD_LIBRARY_PATH}/
COPY --from=redistimeseries ${LD_LIBRARY_PATH}/*.so ${LD_LIBRARY_PATH}/
COPY --from=rejson ${LD_LIBRARY_PATH}/*.so ${LD_LIBRARY_PATH}/
COPY --from=rebloom ${LD_LIBRARY_PATH}/*.so ${LD_LIBRARY_PATH}/
# ENV PYTHONPATH /usr/lib/redis/modules/deps/cpython/Lib
ENTRYPOINT ["redis-server"]
CMD ["--loadmodule", "/usr/lib/redis/modules/redisai.so", \
"--loadmodule", "/usr/lib/redis/modules/redisearch.so", \
"--loadmodule", "/usr/lib/redis/modules/redisgraph.so", \
"--loadmodule", "/usr/lib/redis/modules/redistimeseries.so", \
"--loadmodule", "/usr/lib/redis/modules/rejson.so", \
"--loadmodule", "/usr/lib/redis/modules/redisbloom.so", \
"--loadmodule", "/var/opt/redislabs/lib/modules/redisgears.so", \
"Plugin", "/var/opt/redislabs/modules/rg/plugin/gears_python.so"]