mirror of
https://github.com/goharbor/harbor.git
synced 2024-12-01 22:54:20 +01:00
19 lines
428 B
Docker
19 lines
428 B
Docker
FROM library/ubuntu:14.04
|
|
|
|
RUN rm /etc/rsyslog.d/* && rm /etc/rsyslog.conf
|
|
|
|
ADD make/common/log/rsyslog.conf /etc/rsyslog.conf
|
|
|
|
# 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
|
|
|
|
# rsyslog configuration file for docker
|
|
ADD make/common/log/rsyslog_docker.conf /etc/rsyslog.d/
|
|
|
|
VOLUME /var/log/docker/
|
|
|
|
EXPOSE 514
|
|
|
|
CMD cron && rsyslogd -n
|