Skip to content

Commit b4c165a

Browse files
committed
Patch Redis code for ARM #3
1 parent 1809400 commit b4c165a

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

5.0/Dockerfile.arm

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
# BUILD redisfab/redis-${ARCH}-${OSNICK}-xbuild:5.0.5
22

3-
# buster|stretch|bionic
3+
# OSNICK=buster|stretch|bionic
44
ARG OSNICK=buster
55

6-
# arm32v7|arm64v8
6+
# ARCH=arm32v7|arm64v8
77
ARG ARCH=arm64v8
88

99
#----------------------------------------------------------------------------------------------
@@ -58,11 +58,7 @@ RUN set -ex; \
5858
ADD ./redis-5.0.5.patch /usr/src/redis/
5959
RUN set -ex ;\
6060
cd /usr/src/redis ;\
61-
patch -p1 redis-5.0.5.patch
62-
#RUN set -ex; \
63-
# grep -q '^#define CONFIG_DEFAULT_PROTECTED_MODE 1$' /usr/src/redis/src/server.h; \
64-
# sed -ri 's!^(#define CONFIG_DEFAULT_PROTECTED_MODE) 1$!\1 0!' /usr/src/redis/src/server.h; \
65-
# grep -q '^#define CONFIG_DEFAULT_PROTECTED_MODE 0$' /usr/src/redis/src/server.h
61+
patch -p1 -i redis-5.0.5.patch
6662

6763
# For future reference, we modify this directly in the source instead of just supplying a default
6864
# configuration flag because apparently "if you specify any argument to redis-server,
@@ -83,6 +79,10 @@ FROM redisfab/${ARCH}-xbuild:${OSNICK}
8379

8480
RUN [ "cross-build-start" ]
8581

82+
RUN set -ex; \
83+
apt-get -qq update; \
84+
apt-get -qq install -y --no-install-recommends libatomic1
85+
8686
# Add our user and group first to make sure their IDs get assigned consistently,
8787
# regardless of whatever dependencies get added
8888
RUN groupadd -r redis && useradd -r -g redis redis

0 commit comments

Comments
 (0)