mirror of
https://github.com/goharbor/harbor.git
synced 2024-09-06 02:58:04 +02:00
20 lines
483 B
Docker
20 lines
483 B
Docker
FROM library/ubuntu:14.04
|
|
|
|
# run logrotate hourly, disable imklog model, provides TCP/UDP syslog reception
|
|
RUN mv /etc/cron.daily/logrotate /etc/cron.hourly/ \
|
|
&& rm /etc/rsyslog.d/* \
|
|
&& rm /etc/rsyslog.conf
|
|
ADD rsyslog.conf /etc/rsyslog.conf
|
|
|
|
# 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
|
|
|
|
CMD cron && rsyslogd -n
|