origin-docker-registry/Dockerfile
2018-10-08 14:31:10 +02:00

40 lines
1.6 KiB
Docker

#
# This is the integrated OpenShift Origin Docker registry. It is configured to
# publish metadata to OpenShift to provide automatic management of images on push.
#
# The standard name for this image is openshift/origin-docker-registry
#
FROM registry.fedoraproject.org/f28/origin-base:latest
ENV NAME=origin-docker-registry \
VERSION=3.9 \
ARCH=x86_64
RUN INSTALL_PKGS="origin-dockerregistry" && \
dnf install -y ${INSTALL_PKGS} && \
rpm -V ${INSTALL_PKGS} && \
dnf clean all
COPY config.yml ${REGISTRY_CONFIGURATION_PATH}
LABEL io.k8s.display-name="OpenShift Container Platform Image Registry" \
io.k8s.description="This is a component of OpenShift Container Platform and exposes a Docker registry that is integrated with the cluster for authentication and management." \
io.openshift.tags="openshift,docker,registry" \
summary="This is a component of OpenShift Container Platform and exposes a Docker registry that is integrated with the cluster for authentication and management." \
maintainer="Jakub Cajka <jcajka@fedoraproject.org>" \
License="GPLv2+" \
name="$FGC/$NAME" \
com.redhat.component="origin-docker-registry" \
version="$VERSION" \
architecture="$ARCH" \
usage="This is a component of OpenShift Container Platform and exposes a Docker registry that is integrated with the cluster for authentication and management."
COPY README.md README.md
# The registry doesn't require a root user.
USER 1001
EXPOSE 5000
VOLUME /registry
ENV REGISTRY_CONFIGURATION_PATH=/config.yml
CMD /usr/bin/dockerregistry ${REGISTRY_CONFIGURATION_PATH}