2019-11-12 04:20:54 +01:00
|
|
|
ARG harbor_base_image_version
|
2020-04-01 13:46:45 +02:00
|
|
|
ARG harbor_base_namespace
|
|
|
|
FROM ${harbor_base_namespace}/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 \
|
2020-12-17 17:30:15 +01:00
|
|
|
&& chown -R harbor:harbor /harbor/ \
|
|
|
|
&& chmod u+x /harbor/entrypoint.sh \
|
|
|
|
&& chmod u+x /harbor/install_cert.sh \
|
|
|
|
&& 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
|
|
|
|
|
2022-07-11 10:35:04 +02:00
|
|
|
VOLUME ["/var/log/jobs/", "/var/scandata_exports"]
|
2019-07-23 11:50:24 +02:00
|
|
|
|
2021-05-13 11:16:53 +02:00
|
|
|
HEALTHCHECK CMD curl --fail -s http://localhost:8080/api/v1/stats || curl -sk --fail --key /etc/harbor/ssl/job_service.key --cert /etc/harbor/ssl/job_service.crt https://localhost: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"]
|