forked from RedisGears/RedisGears
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile.arm
executable file
·47 lines (29 loc) · 1.21 KB
/
Dockerfile.arm
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
35
36
37
38
39
40
41
42
43
44
45
46
47
# BUILD redisfab/redisgears-${OSNICK}:M.m.b-${ARCH}
# stretch|bionic|buster
ARG OSNICK=buster
# ARCH=arm64v8|arm32v7
ARG ARCH=arm64v8
#----------------------------------------------------------------------------------------------
FROM redisfab/redis-${ARCH}-${OSNICK}-xbuild:5.0.5 AS builder
RUN [ "cross-build-start" ]
ADD . /build
WORKDIR /build
RUN ./deps/readies/bin/getpy2
RUN ./system-setup.py
RUN make fetch SHOW=1
RUN make all SHOW=1
ARG TEST=0
RUN if [ "$TEST" = "1" ]; then TEST= make test; fi
RUN [ "cross-build-end" ]
#----------------------------------------------------------------------------------------------
FROM redisfab/redis-${ARCH}-${OSNICK}-xbuild:5.0.5
RUN [ "cross-build-start" ]
ENV REDIS_MODULES /var/opt/redislabs/lib/modules
RUN mkdir -p $REDIS_MODULES/
COPY --from=builder /build/redisgears.so $REDIS_MODULES/
COPY --from=builder /build/artifacts/release/redisgears-dependencies.*.tgz /tmp/
RUN tar xzf /tmp/redisgears-dependencies.*.tgz -C /
RUN if [ ! -z $(command -v apt-get) ]; then apt-get -qq update; apt-get -q install -y git; fi
RUN if [ ! -z $(command -v yum) ]; then yum install -y git; fi
CMD ["--loadmodule", "/var/opt/redislabs/lib/modules/redisgears.so"]
RUN [ "cross-build-end" ]