2018-10-18 05:03:28 +02:00
|
|
|
FROM photon:2.0
|
2016-08-23 11:57:12 +02:00
|
|
|
|
2019-07-23 11:50:24 +02:00
|
|
|
RUN tdnf install sudo -y >> /dev/null\
|
2017-11-08 14:22:00 +01:00
|
|
|
&& tdnf clean all \
|
2019-07-23 11:50:24 +02:00
|
|
|
&& groupadd -r -g 10000 harbor && useradd --no-log-init -r -g 10000 -u 10000 harbor
|
2016-08-23 11:57:12 +02:00
|
|
|
|
2019-07-23 11:50:24 +02:00
|
|
|
COPY ./make/photon/jobservice/harbor_jobservice /harbor/
|
|
|
|
|
|
|
|
RUN 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/"]
|
|
|
|
|
2019-08-01 10:02:08 +02:00
|
|
|
HEALTHCHECK CMD curl --fail -s http://127.0.0.1:8080/api/v1/stats || exit 1
|
|
|
|
|
2019-07-23 11:50:24 +02:00
|
|
|
ENTRYPOINT ["/harbor/harbor_jobservice", "-c", "/etc/jobservice/config.yml"]
|