sonic-buildimage/dockers/docker-database/Dockerfile

20 lines
986 B
Docker
Raw Normal View History

FROM docker-base
2016-03-08 13:42:20 -06:00
COPY ["deps/redis-tools_*.deb", "deps/redis-server_*.deb", "/deps/"]
## Install packages
## Clean up
RUN apt-get update && \
dpkg_apt() { [ -f $1 ] && { dpkg -i $1 || apt-get -y install -f; } || return 1; }; \
dpkg_apt /deps/redis-tools_*.deb && \
dpkg_apt /deps/redis-server_*.deb && \
apt-get clean -y && apt-get autoclean -y && apt-get autoremove -y
2016-03-08 13:42:20 -06:00
RUN sed -ri 's/^daemonize yes$/daemonize no/; \
s/^logfile .*$/logfile ""/; \
s/^# syslog-enabled no$/syslog-enabled no/; \
s/^# unixsocket/unixsocket/ \
' /etc/redis/redis.conf
ENTRYPOINT service redis-server start