2018-07-19 14:45:20 +02:00
|
|
|
FROM photon:1.0
|
2016-12-30 11:04:01 +01:00
|
|
|
|
2017-10-17 09:33:07 +02:00
|
|
|
RUN tdnf erase vim -y \
|
2018-06-01 08:58:43 +02:00
|
|
|
&& tdnf distro-sync -y \
|
2018-02-27 08:01:14 +01:00
|
|
|
&& tdnf install -y sudo >> /dev/null \
|
2017-10-17 04:54:00 +02:00
|
|
|
&& tdnf clean all \
|
2017-11-08 14:22:00 +01:00
|
|
|
&& groupadd -r -g 10000 harbor && useradd --no-log-init -r -g 10000 -u 10000 harbor \
|
2017-10-17 04:54:00 +02:00
|
|
|
&& mkdir /harbor/
|
2018-09-03 11:40:26 +02:00
|
|
|
COPY ./make/photon/adminserver/harbor_adminserver ./make/photon/adminserver/start.sh /harbor/
|
2018-07-13 11:32:17 +02:00
|
|
|
#As UI will be blocked until adminserver is ready, let adminserver do the initialise work for DB
|
2018-06-27 11:49:46 +02:00
|
|
|
COPY ./make/migrations /harbor/migrations
|
|
|
|
|
2018-03-28 08:52:42 +02:00
|
|
|
HEALTHCHECK CMD curl --fail -s http://127.0.0.1:8080/api/ping || exit 1
|
2016-12-30 11:04:01 +01:00
|
|
|
|
2017-11-08 14:22:00 +01:00
|
|
|
RUN chmod u+x /harbor/harbor_adminserver /harbor/start.sh
|
2016-12-30 11:04:01 +01:00
|
|
|
WORKDIR /harbor/
|
2017-11-08 14:22:00 +01:00
|
|
|
ENTRYPOINT ["/harbor/start.sh"]
|