mirror of
https://github.com/goharbor/harbor.git
synced 2024-12-26 18:48:02 +01:00
17 lines
418 B
Docker
17 lines
418 B
Docker
FROM vmware/rsyslog-photon:8.15.0
|
|
|
|
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.daily/rotate
|
|
|
|
# rsyslog configuration file for docker
|
|
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
|