harbor/make/photon/log/Dockerfile

17 lines
418 B
Docker
Raw Normal View History

2017-07-03 09:57:46 +00:00
FROM vmware/rsyslog-photon:8.15.0
2016-10-19 06:32:00 +00:00
ADD make/common/log/rsyslog.conf /etc/rsyslog.conf
2016-10-26 10:03:31 +00:00
# rotate logs weekly
# notes: file name cannot contain dot, or the script will not run
2017-10-13 08:06:25 +00:00
ADD make/common/log/rotate.sh /etc/cron.daily/rotate
# rsyslog configuration file for docker
2016-10-19 06:32:00 +00:00
ADD make/common/log/rsyslog_docker.conf /etc/rsyslog.d/
VOLUME /var/log/docker/
EXPOSE 514
CMD crond && rm -f /var/run/rsyslogd.pid && rsyslogd -n