harbor/Deploy/log/Dockerfile

20 lines
483 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
ADD rsyslog.conf /etc/rsyslog.conf
2016-02-01 12:59:10 +01:00
# logrotate configuration file for docker
ADD logrotate_docker.conf /etc/logrotate.d/
# rsyslog configuration file for docker
ADD rsyslog_docker.conf /etc/rsyslog.d/
VOLUME /var/log/docker/
EXPOSE 514
2016-02-26 11:37:26 +01:00
CMD cron && rsyslogd -n