From 222385fcccfb4e64f2f5a84e28ca7deb6411096c Mon Sep 17 00:00:00 2001 From: eeff <33566201+eeff@users.noreply.github.com> Date: Wed, 23 Feb 2022 16:15:39 +0800 Subject: [PATCH] Fix CI for syslog intergration --- .github/dockerfile/Dockerfile | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/dockerfile/Dockerfile b/.github/dockerfile/Dockerfile index d4576255..02b10acd 100644 --- a/.github/dockerfile/Dockerfile +++ b/.github/dockerfile/Dockerfile @@ -6,7 +6,10 @@ RUN apt-get update -y \ libssl-dev libghc-zlib-dev libcurl4-gnutls-dev libexpat1-dev gettext \ pkg-config \ python3 python3-pip \ - mosquitto + mosquitto rsyslog + +RUN echo "if \$programname contains 'neuron' then /var/log/neuron.log" > /etc/rsyslog.d/neuron.conf \ + && install -m 0640 -o syslog -g adm /dev/null /var/log/neuron.log COPY install-libs.sh install-libs.sh