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 1
1
# BUILD redisfab/redis-${ARCH}-${OSNICK}-xbuild:5.0.5
2
2
3
- # buster|stretch|bionic
3
+ # OSNICK= buster|stretch|bionic
4
4
ARG OSNICK=buster
5
5
6
- # arm32v7|arm64v8
6
+ # ARCH= arm32v7|arm64v8
7
7
ARG ARCH=arm64v8
8
8
9
9
#----------------------------------------------------------------------------------------------
@@ -58,11 +58,7 @@ RUN set -ex; \
58
58
ADD ./redis-5.0.5.patch /usr/src/redis/
59
59
RUN set -ex ;\
60
60
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
66
62
67
63
# For future reference, we modify this directly in the source instead of just supplying a default
68
64
# configuration flag because apparently "if you specify any argument to redis-server,
@@ -83,6 +79,10 @@ FROM redisfab/${ARCH}-xbuild:${OSNICK}
83
79
84
80
RUN [ "cross-build-start" ]
85
81
82
+ RUN set -ex; \
83
+ apt-get -qq update; \
84
+ apt-get -qq install -y --no-install-recommends libatomic1
85
+
86
86
# Add our user and group first to make sure their IDs get assigned consistently,
87
87
# regardless of whatever dependencies get added
88
88
RUN groupadd -r redis && useradd -r -g redis redis
You can’t perform that action at this time.
0 commit comments