Skip to content

Commit

Permalink
fixme: use openshift/origin-docker-registry:latest as registry image
Browse files Browse the repository at this point in the history
  • Loading branch information
mfojtik authored and liggitt committed Nov 20, 2017
1 parent 1252cce commit 614724c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 40 deletions.
21 changes: 1 addition & 20 deletions images/dockerregistry/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,23 +4,4 @@
#
# The standard name for this image is openshift/origin-docker-registry
#
FROM openshift/origin-base

RUN INSTALL_PKGS="origin-dockerregistry" && \
yum --enablerepo=origin-local-release install -y ${INSTALL_PKGS} && \
rpm -V ${INSTALL_PKGS} && \
yum 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"

# 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}
FROM openshift/origin-docker-registry:latest
21 changes: 1 addition & 20 deletions images/dockerregistry/Dockerfile.centos7
Original file line number Diff line number Diff line change
Expand Up @@ -4,23 +4,4 @@
#
# The standard name for this image is openshift/origin-docker-registry
#
FROM openshift/origin-base

RUN INSTALL_PKGS="origin-dockerregistry" && \
yum --enablerepo=origin-local-release install -y ${INSTALL_PKGS} && \
rpm -V ${INSTALL_PKGS} && \
yum 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"

# 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}
FROM openshift/origin-docker-registry:latest

0 comments on commit 614724c

Please sign in to comment.