2017-07-03 11:57:46 +02:00
|
|
|
FROM vmware/rsyslog-photon:8.15.0
|
2016-08-23 11:57:12 +02:00
|
|
|
|
2017-11-02 04:51:32 +01:00
|
|
|
COPY rsyslog.conf /etc/rsyslog.conf
|
2016-08-23 11:57:12 +02:00
|
|
|
|
2016-10-26 12:03:31 +02:00
|
|
|
# rotate logs weekly
|
|
|
|
# notes: file name cannot contain dot, or the script will not run
|
2017-11-02 04:51:32 +01:00
|
|
|
COPY rotate.sh /etc/cron.daily/rotate
|
2016-08-23 11:57:12 +02:00
|
|
|
|
|
|
|
# rsyslog configuration file for docker
|
2017-11-02 04:51:32 +01:00
|
|
|
COPY rsyslog_docker.conf /etc/rsyslog.d/
|
2016-08-23 11:57:12 +02:00
|
|
|
|
2017-11-02 04:51:32 +01:00
|
|
|
COPY start.sh /usr/local/bin/
|
|
|
|
RUN chmod +x /usr/local/bin/start.sh && \
|
|
|
|
tdnf install -y sudo net-tools && \
|
|
|
|
chown -R 10000:10000 /run
|
2016-08-23 11:57:12 +02:00
|
|
|
|
2017-11-02 04:51:32 +01:00
|
|
|
HEALTHCHECK CMD netstat -ltu|grep 10514
|
2016-08-23 11:57:12 +02:00
|
|
|
|
2017-11-02 04:51:32 +01:00
|
|
|
VOLUME /var/log/docker/ /run/
|
|
|
|
|
|
|
|
EXPOSE 10514
|
|
|
|
|
|
|
|
#CMD crond && rm -f /var/run/rsyslogd.pid && rsyslogd -n
|
|
|
|
CMD /usr/local/bin/start.sh
|