2018-07-19 14:45:20 +02:00
|
|
|
FROM photon:1.0
|
2017-07-24 11:19:32 +02:00
|
|
|
|
|
|
|
MAINTAINER wangyan@vmware.com
|
|
|
|
|
|
|
|
# The original script in the docker offical registry image.
|
2017-12-20 06:10:32 +01:00
|
|
|
RUN tdnf distro-sync -y \
|
2017-10-30 04:06:48 +01:00
|
|
|
&& tdnf erase vim -y \
|
2018-02-27 08:01:14 +01:00
|
|
|
&& tdnf install sudo -y >> /dev/null\
|
2017-11-02 04:51:32 +01:00
|
|
|
&& tdnf clean all \
|
|
|
|
&& groupadd -r -g 10000 harbor && useradd --no-log-init -r -g 10000 -u 10000 harbor
|
|
|
|
|
2018-09-03 11:40:26 +02:00
|
|
|
COPY ./make/photon/registry/entrypoint.sh /
|
2017-07-24 11:19:32 +02:00
|
|
|
RUN chmod u+x /entrypoint.sh
|
|
|
|
|
2017-11-02 04:51:32 +01:00
|
|
|
RUN mkdir -p /etc/registry
|
2017-08-30 10:13:54 +02:00
|
|
|
|
2018-09-03 11:40:26 +02:00
|
|
|
COPY ./make/photon/registry/binary/registry /usr/bin
|
2017-07-24 11:19:32 +02:00
|
|
|
RUN chmod u+x /usr/bin/registry
|
|
|
|
|
2017-11-02 04:51:32 +01:00
|
|
|
HEALTHCHECK CMD curl 127.0.0.1:5000/
|
|
|
|
|
2017-07-24 11:19:32 +02:00
|
|
|
VOLUME ["/var/lib/registry"]
|
|
|
|
EXPOSE 5000
|
|
|
|
ENTRYPOINT ["/entrypoint.sh"]
|
2018-07-16 10:50:28 +02:00
|
|
|
CMD ["/etc/registry/config.yml"]
|