Change certs's owner to 10000

Signed-off-by: DQ <dengq@vmware.com>
This commit is contained in:
DQ 2019-10-22 21:24:49 +08:00
parent a0462f0baa
commit ece321a53a
5 changed files with 6 additions and 4 deletions

View File

@ -9,7 +9,7 @@ COPY ./make/photon/chartserver/binary/chartm /home/chart/
COPY ./make/photon/chartserver/docker-entrypoint.sh /home/chart/
COPY ./make/photon/common/install_cert.sh /home/chart/
RUN chmod -R 777 /etc/pki/tls/certs \
RUN chown -R chart:chart /etc/pki/tls/certs \
&& chown -R chart:chart /home/chart \
&& chmod u+x /home/chart/chartm \
&& chmod u+x /home/chart/docker-entrypoint.sh \

View File

@ -13,7 +13,7 @@ VOLUME /config
EXPOSE 6060 6061
RUN chmod -R 777 /etc/pki/tls/certs \
RUN chown -R clair:clair /etc/pki/tls/certs \
&& chown -R clair:clair /home/clair \
&& chmod u+x /home/clair/clair \
&& chmod u+x /home/clair/docker-entrypoint.sh \

View File

@ -48,6 +48,8 @@ def validate(conf, **kwargs):
raise Exception(
"Error: redis_port in harbor.yml needs to point to the port of Redis server or cluster.")
# TODO:
# If user enable trust cert dir, need check if the files in this dir is readable.
def parse_versions():
if not versions_file_path.is_file():

View File

@ -12,7 +12,7 @@ COPY ./make/photon/common/install_cert.sh /home/harbor
COPY ./make/photon/registry/entrypoint.sh /home/harbor
COPY ./make/photon/registry/binary/registry /usr/bin
RUN chmod -R 777 /etc/pki/tls/certs \
RUN chown -R harbor:harbor /etc/pki/tls/certs \
&& chown harbor:harbor /home/harbor/entrypoint.sh && chmod u+x /home/harbor/entrypoint.sh \
&& chown harbor:harbor /home/harbor/install_cert.sh && chmod u+x /home/harbor/install_cert.sh \
&& chown harbor:harbor /usr/bin/registry && chmod u+x /usr/bin/registry

View File

@ -12,7 +12,7 @@ COPY ./make/photon/registry/binary/registry /usr/bin
COPY ./make/photon/registryctl/start.sh /home/harbor
COPY ./make/photon/registryctl/harbor_registryctl /home/harbor
RUN chmod -R 777 /etc/pki/tls/certs \
RUN chown -R harbor:harbor /etc/pki/tls/certs \
&& chown harbor:harbor /home/harbor/harbor_registryctl && chmod u+x /home/harbor/harbor_registryctl \
&& chown harbor:harbor /usr/bin/registry && chmod u+x /usr/bin/registry \
&& chown harbor:harbor /home/harbor/start.sh && chmod u+x /home/harbor/start.sh \