harbor/make/ubuntu/log/Dockerfile

20 lines
531 B
Docker
Raw Normal View History

2016-02-01 12:59:10 +01:00
FROM library/ubuntu:14.04
2016-02-24 03:30:13 +01:00
# run logrotate hourly, disable imklog model, provides TCP/UDP syslog reception
RUN mv /etc/cron.daily/logrotate /etc/cron.hourly/ \
2016-05-17 05:24:02 +02:00
&& rm /etc/rsyslog.d/* \
&& rm /etc/rsyslog.conf
2016-10-19 08:32:00 +02:00
ADD make/common/log/rsyslog.conf /etc/rsyslog.conf
2016-02-01 12:59:10 +01:00
# logrotate configuration file for docker
2016-10-19 08:32:00 +02:00
ADD make/common/log/logrotate_docker.conf /etc/logrotate.d/
2016-02-01 12:59:10 +01:00
# rsyslog configuration file for docker
2016-10-19 08:32:00 +02:00
ADD make/common/log/rsyslog_docker.conf /etc/rsyslog.d/
2016-02-01 12:59:10 +01:00
VOLUME /var/log/docker/
EXPOSE 514
2016-02-26 11:37:26 +01:00
CMD cron && rsyslogd -n