Skip to content

Commit

Permalink
ARM (aarch64) support #2
Browse files Browse the repository at this point in the history
  • Loading branch information
rafie committed May 21, 2019
1 parent e8ab2e0 commit 0bb23c9
Showing 1 changed file with 10 additions and 6 deletions.
16 changes: 10 additions & 6 deletions redis/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

# FROM redislabs/redisedge-arm:arm64-bionic

FROM raffapen/redisedge-arm:arm64-bionic
FROM raffapen/redisedge-arm:arm64-bionic as redisedge

ENV LD_LIBRARY_PATH /usr/lib/redis/modules/
ENV RUNTIME_DEPS "python python-setuptools python-pip python-dev build-essential libglib2.0-0 libsm6 libxext6 libfontconfig1 libxrender1"
Expand All @@ -15,12 +15,16 @@ RUN set -ex;\
apt-get update;\
apt-get install -y --no-install-recommends $RUNTIME_DEPS;

COPY --from=redisai /usr/lib/redis/modules/*.so* "$LD_LIBRARY_PATH"

COPY --from=redisedge ${LD_LIBRARY_PATH}/*.so ${LD_LIBRARY_PATH}/
COPY --from=redisedge /opt/redislabs/lib/modules/redisgears.so ${LD_LIBRARY_PATH}/
COPY --from=redisedge /opt/redislabs /opt/redislabs

RUN pip install -t /usr/local/lib/python3/site-packages ${PYTHON_DEPS}

EXPOSE 6379
ENTRYPOINT ["redis-server"]
CMD ["--loadmodule", "/usr/lib/redis/modules/redisai.so", \
"--loadmodule", "/usr/lib/redis/modules/redisgears.so", \
"PythonHomeDir", "/usr/lib/redis/modules/deps/cpython/"]

CMD ["--loadmodule", "/usr/lib/redis/modules/redistimeseries.so", \
"--loadmodule", "/usr/lib/redis/modules/redisai.so", \
"--loadmodule", "/usr/lib/redis/modules/redisgears.so", \
"PythonHomeDir", "/opt/redislabs/lib/modules/python3/"]

0 comments on commit 0bb23c9

Please sign in to comment.