2017-10-24 14:22:10 +02:00
|
|
|
FROM vmware/photon:1.0
|
2016-08-23 11:57:12 +02:00
|
|
|
|
2017-10-23 04:48:56 +02:00
|
|
|
RUN mkdir /harbor/ \
|
2017-12-19 07:18:21 +01:00
|
|
|
&& tdnf distro-sync -y || echo \
|
2018-02-27 08:01:14 +01:00
|
|
|
&& tdnf install sudo -y >> /dev/null\
|
2017-11-08 14:22:00 +01:00
|
|
|
&& tdnf clean all \
|
|
|
|
&& groupadd -r -g 10000 harbor && useradd --no-log-init -r -g 10000 -u 10000 harbor
|
|
|
|
HEALTHCHECK CMD curl -s -o /dev/null -w "%{http_code}" http://127.0.0.1:8080/api/jobs/replication/1/log|grep 401
|
2016-08-23 11:57:12 +02:00
|
|
|
|
2017-11-08 14:22:00 +01:00
|
|
|
COPY ./make/photon/jobservice/start.sh ./make/dev/jobservice/harbor_jobservice /harbor/
|
|
|
|
|
|
|
|
RUN chmod u+x /harbor/harbor_jobservice /harbor/start.sh
|
2016-08-23 11:57:12 +02:00
|
|
|
WORKDIR /harbor/
|
2017-11-08 14:22:00 +01:00
|
|
|
ENTRYPOINT ["/harbor/start.sh"]
|