mirror of
https://github.com/goharbor/harbor.git
synced 2025-01-22 23:51:27 +01:00
Fix: log container password expire
move chage command to base image Signed-off-by: DQ <dengq@vmware.com>
This commit is contained in:
parent
039733b200
commit
9152521b11
@ -17,8 +17,6 @@ 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/
|
||||
|
@ -3,4 +3,5 @@ FROM photon:2.0
|
||||
RUN tdnf install -y cronie rsyslog logrotate shadow tar gzip sudo >> /dev/null\
|
||||
&& mkdir /var/spool/rsyslog \
|
||||
&& groupadd -r -g 10000 syslog && useradd --no-log-init -r -g 10000 -u 10000 syslog \
|
||||
&& tdnf clean all
|
||||
&& tdnf clean all \
|
||||
&& chage -M 99999 root
|
||||
|
Loading…
Reference in New Issue
Block a user