mirror of
https://github.com/goharbor/harbor.git
synced 2024-12-18 06:38:19 +01:00
e32649adb4
In order to replace travis. Implement 5 CI jobs - UTTEST - APITEST_DB - APITEST_LDAP - OFFLINE - UI_UT Signed-off-by: Ziming Zhang <zziming@vmware.com>
21 lines
706 B
Docker
21 lines
706 B
Docker
ARG harbor_base_image_version
|
|
FROM goharbor/harbor-registry-base:${harbor_base_image_version}
|
|
|
|
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 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
|
|
|
|
HEALTHCHECK CMD curl 127.0.0.1:5000/
|
|
|
|
USER harbor
|
|
|
|
ENTRYPOINT ["/home/harbor/entrypoint.sh"]
|
|
|
|
VOLUME ["/storage"]
|
|
EXPOSE 5000
|