mirror of
https://github.com/goharbor/harbor.git
synced 2024-12-02 15:14:09 +01:00
f83c65bcc5
The following are done to avoid travis-ci failing due to too much log size. 1) Update Makefile and scripts to make go build less verbose. 2) Make tdnf less verbose
29 lines
794 B
Docker
29 lines
794 B
Docker
FROM vmware/photon:1.0
|
|
|
|
RUN tdnf distro-sync -y \
|
|
&& tdnf install -y cronie rsyslog logrotate shadow tar gzip sudo net-tools >> /dev/null\
|
|
&& mkdir /etc/rsyslog.d/ \
|
|
&& mkdir /var/spool/rsyslog \
|
|
&& groupadd -r -g 10000 syslog && useradd --no-log-init -r -g 10000 -u 10000 syslog \
|
|
&& tdnf clean all
|
|
|
|
COPY rsyslog.conf /etc/rsyslog.conf
|
|
|
|
# rsyslog configuration file for docker
|
|
COPY rsyslog_docker.conf /etc/rsyslog.d/
|
|
|
|
# run logrotate hourly
|
|
RUN mv /etc/cron.daily/logrotate /etc/cron.hourly/logrotate
|
|
|
|
COPY start.sh /usr/local/bin/
|
|
RUN chmod +x /usr/local/bin/start.sh && \
|
|
chown -R 10000:10000 /etc/rsyslog.conf /etc/rsyslog.d/ /run
|
|
|
|
HEALTHCHECK CMD netstat -ltu|grep 10514
|
|
|
|
VOLUME /var/log/docker/ /run/ /etc/logrotate.d/
|
|
|
|
EXPOSE 10514
|
|
|
|
CMD /usr/local/bin/start.sh
|