File tree Expand file tree Collapse file tree 1 file changed +7
-7
lines changed
Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Original file line number Diff line number Diff line change 11# BUILD redisfab/redis-${ARCH}-${OSNICK}-xbuild:5.0.5
22
3- # buster|stretch|bionic
3+ # OSNICK= buster|stretch|bionic
44ARG OSNICK=buster
55
6- # arm32v7|arm64v8
6+ # ARCH= arm32v7|arm64v8
77ARG ARCH=arm64v8
88
99#----------------------------------------------------------------------------------------------
@@ -58,11 +58,7 @@ RUN set -ex; \
5858ADD ./redis-5.0.5.patch /usr/src/redis/
5959RUN 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
8480RUN [ "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
8888RUN groupadd -r redis && useradd -r -g redis redis
You can’t perform that action at this time.
0 commit comments