harbor/make/ubuntu/log/Dockerfile

19 lines
428 B
Docker
Raw Normal View History

2016-02-01 12:59:10 +01:00
FROM library/ubuntu:14.04
2016-10-26 12:03:31 +02:00
RUN 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
2016-10-26 12:03:31 +02:00
# rotate logs weekly
# notes: file name cannot contain dot, or the script will not run
ADD make/common/log/rotate.sh /etc/cron.weekly/rotate
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