forked from RedisLabsModules/redismod
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile.edge
34 lines (30 loc) · 1.54 KB
/
Dockerfile.edge
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:edge-cpu as redisai
FROM redislabs/redisearch:edge as redisearch
FROM redislabs/redisgraph:edge as redisgraph
FROM redislabs/redistimeseries:edge as redistimeseries
FROM redislabs/rejson:edge as rejson
FROM redislabs/rebloom:edge as rebloom
FROM redislabs/redisgears:edge
ENV LD_LIBRARY_PATH /usr/lib/redis/modules
ENV REDISGRAPH_DEPS libgomp1
WORKDIR /data
RUN set -ex; \
apt-get 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"]