summaryrefslogtreecommitdiffstats
path: root/redis-cluster-container/Dockerfile
diff options
context:
space:
mode:
authorLusheng Ji <lji@research.att.com>2018-03-25 00:21:12 -0400
committerLusheng Ji <lji@research.att.com>2018-03-25 00:21:19 -0400
commit649d242623da77f02277c778a55cc51430a809ca (patch)
treec2879b47c44368b2f90cb7267c3678a232bd9687 /redis-cluster-container/Dockerfile
parent16a554c60549b0cb970c5f57894801932d2a0e8e (diff)
Add redis cluster config
Issue-ID: DCAEGEN2-245 Change-Id: I1ed2d9e1bd7ae37e1772eaaa8da5fd6875e3e5cd Signed-off-by: Lusheng Ji <lji@research.att.com>
Diffstat (limited to 'redis-cluster-container/Dockerfile')
-rw-r--r--redis-cluster-container/Dockerfile7
1 files changed, 5 insertions, 2 deletions
diff --git a/redis-cluster-container/Dockerfile b/redis-cluster-container/Dockerfile
index 0892ced..082b272 100644
--- a/redis-cluster-container/Dockerfile
+++ b/redis-cluster-container/Dockerfile
@@ -17,11 +17,14 @@ FROM redis:4.0.8
ENV DEBIAN_FRONTEND noninteractive
RUN apt-get -y update \
&& apt-get -y upgrade \
- && apt-get -y --no-install-recommends install ruby wget \
+ && apt-get -y --no-install-recommends install ruby wget jq \
&& gem install redis -v 3.3.5 \
&& apt-get -y autoremove \
&& apt-get -y clean
RUN wget -O /usr/local/bin/redis-trib http://download.redis.io/redis-stable/src/redis-trib.rb
RUN sed -i -e 's/yes_or_die \"/#yes_or_die \"/g' /usr/local/bin/redis-trib
RUN chmod 755 /usr/local/bin/redis-trib
-CMD redis-server
+COPY redis-server-config.sh /usr/local/bin/redis-server-config.sh
+RUN chmod 755 /usr/local/bin/redis-server-config.sh
+#CMD redis-server
+CMD redis-server-config.sh