mirror of
https://github.com/goharbor/harbor.git
synced 2024-09-07 19:48:06 +02:00
The export is dynamical now because of introduce of internal TLS Signed-off-by: DQ <dengq@vmware.com>
27 lines
863 B
Docker
27 lines
863 B
Docker
ARG harbor_base_image_version
|
|
ARG harbor_base_namespace
|
|
FROM ${harbor_base_namespace}/harbor-log-base:${harbor_base_image_version}
|
|
|
|
COPY ./make/photon/log/rsyslog.conf /etc/rsyslog.conf
|
|
|
|
# rsyslog configuration file for docker
|
|
COPY ./make/photon/log/rsyslog_docker.conf /etc/rsyslog.d/
|
|
|
|
# remove the original "logrotate" in directory "/etc/cron.daily/"
|
|
# and copy the customized one to directory "/etc/cron.hourly/"
|
|
# to run logrotate hourly
|
|
RUN rm /etc/cron.daily/logrotate
|
|
COPY ./make/photon/log/logrotate /etc/cron.hourly/
|
|
|
|
COPY ./make/photon/log/start.sh /usr/local/bin/
|
|
RUN chmod +x /usr/local/bin/start.sh /etc/rsyslog.d/ && \
|
|
chown -R 10000:10000 /etc/rsyslog.conf /etc/rsyslog.d/ /run /var/lib/logrotate/
|
|
|
|
RUN chage -M 99999 root
|
|
|
|
HEALTHCHECK CMD netstat -ltun|grep 10514
|
|
|
|
VOLUME /var/log/docker/ /run/ /etc/logrotate.d/
|
|
|
|
CMD /usr/local/bin/start.sh
|