2019-11-12 04:20:54 +01:00
|
|
|
ARG harbor_base_image_version
|
2019-11-11 11:56:36 +01:00
|
|
|
FROM goharbor/harbor-jobservice-base:${harbor_base_image_version}
|
2016-08-23 11:57:12 +02:00
|
|
|
|
2020-03-11 19:13:58 +01:00
|
|
|
COPY ./make/photon/common/install_cert.sh /harbor/
|
|
|
|
COPY ./make/photon/jobservice/entrypoint.sh /harbor/
|
2019-07-23 11:50:24 +02:00
|
|
|
COPY ./make/photon/jobservice/harbor_jobservice /harbor/
|
|
|
|
|
2020-03-11 19:13:58 +01:00
|
|
|
|
|
|
|
RUN chown -R harbor:harbor /etc/pki/tls/certs \
|
|
|
|
&& chown harbor:harbor /harbor/entrypoint.sh && chmod u+x /harbor/entrypoint.sh \
|
|
|
|
&& chown harbor:harbor /harbor/install_cert.sh && chmod u+x /harbor/install_cert.sh \
|
|
|
|
&& chown harbor:harbor /harbor/harbor_jobservice && chmod u+x /harbor/harbor_jobservice
|
2017-11-08 14:22:00 +01:00
|
|
|
|
2016-08-23 11:57:12 +02:00
|
|
|
WORKDIR /harbor/
|
2019-07-23 11:50:24 +02:00
|
|
|
|
|
|
|
USER harbor
|
|
|
|
|
|
|
|
VOLUME ["/var/log/jobs/"]
|
|
|
|
|
2020-04-04 19:43:12 +02:00
|
|
|
HEALTHCHECK CMD curl --fail -s http://127.0.0.1:8080/api/v1/stats || curl -k --fail -s https://127.0.0.1:8443/api/v1/stats || exit 1
|
2019-08-01 10:02:08 +02:00
|
|
|
|
2020-03-11 19:13:58 +01:00
|
|
|
ENTRYPOINT ["/harbor/entrypoint.sh"]
|