-
Notifications
You must be signed in to change notification settings - Fork 140
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
switch to ubuntu:bionic-20180526 with redis 4.0.9
- Loading branch information
Sameer Naik
committed
Jul 12, 2018
1 parent
4af9271
commit 668a27c
Showing
1 changed file
with
6 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
|