Skip to content

Commit a11593a

Browse files
jiacaolguohan
authored andcommitted
Fix the redis.conf file for sonic p4 image (#151)
1 parent a01d484 commit a11593a

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

platform/p4/docker-sonic-p4/Dockerfile.template

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,4 +17,10 @@ ADD rsyslog.conf /etc/rsyslog.conf
1717
RUN apt-get clean -y; apt-get autoclean -y; apt-get autoremove -y
1818
RUN rm -rf /deps
1919

20+
RUN sed -ri 's/^daemonize yes$/daemonize no/; \
21+
s/^logfile .*$/logfile ""/; \
22+
s/^# syslog-enabled no$/syslog-enabled no/; \
23+
s/^# unixsocket/unixsocket/ \
24+
' /etc/redis/redis.conf
25+
2026
ENTRYPOINT /bin/bash

0 commit comments

Comments
 (0)