Skip to content

Commit

Permalink
switch to ubuntu:bionic-20180526 with redis 4.0.9
Browse files Browse the repository at this point in the history
  • Loading branch information
Sameer Naik committed Jul 12, 2018
1 parent 4af9271 commit 668a27c
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
FROM ubuntu:xenial-20180525
FROM ubuntu:bionic-20180526
LABEL maintainer="[email protected]"

ENV REDIS_VERSION=3.0.6 \
ENV REDIS_VERSION=4.0.9 \
REDIS_USER=redis \
REDIS_DATA_DIR=/var/lib/redis \
REDIS_LOG_DIR=/var/log/redis

RUN apt-get update \
&& DEBIAN_FRONTEND=noninteractive apt-get install -y redis-server=2:${REDIS_VERSION}* \
&& DEBIAN_FRONTEND=noninteractive apt-get install -y redis-server=5:${REDIS_VERSION}* \
&& sed 's/^bind /# bind /' -i /etc/redis/redis.conf \
&& sed 's/^logfile /# logfile /' -i /etc/redis/redis.conf \
&& sed 's/^daemonize yes/daemonize no/' -i /etc/redis/redis.conf \
&& sed 's/^bind 127.0.0.1/bind 0.0.0.0/' -i /etc/redis/redis.conf \
&& sed 's/^# unixsocket /unixsocket /' -i /etc/redis/redis.conf \
&& sed 's/^# unixsocketperm 755/unixsocketperm 777/' -i /etc/redis/redis.conf \
&& sed '/^logfile/d' -i /etc/redis/redis.conf \
&& sed 's/^# unixsocketperm 700/unixsocketperm 777/' -i /etc/redis/redis.conf \
&& rm -rf /var/lib/apt/lists/*

COPY entrypoint.sh /sbin/entrypoint.sh
Expand Down

0 comments on commit 668a27c

Please sign in to comment.