#
# This is the official OpenShift Origin pod infrastructure image. It will stay running
# until terminated by a signal and is the heart of each running pod. It holds on to
# the network and IPC namespaces as containers come and go during the lifetime of the
# pod.
#
# The standard name for this image is openshift/origin-pod
FROM registry.fedoraproject.org/f28/origin:latest

ENV NAME=origin-pod \
    VERSION=3.9 \
    ARCH=x86_64

RUN INSTALL_PKGS="origin-pod" && \
    dnf install -y ${INSTALL_PKGS} && \
    rpm -V ${INSTALL_PKGS} && \
    dnf clean all

LABEL io.k8s.display-name="OpenShift Origin Pod Infrastructure" \
      io.k8s.description="This is a component of OpenShift Origin and holds on to the shared Linux namespaces within a Pod." \
      io.openshift.tags="openshift,pod" \
      summary="This is a component of OpenShift Origin and holds on to the shared Linux namespaces within a Pod." \
      maintainer="Jakub Cajka <jcajka@fedoraproject.org>" \
      License="GPLv2+" \
      name="$FGC/$NAME" \
      com.redhat.component="$NAME" \
      version="$VERSION" \
      architecture="$ARCH" \
      usage="This is a component of OpenShift Origin and holds on to the shared Linux namespaces within a Pod."

COPY README.md README.md

USER 1001
ENTRYPOINT ["/usr/bin/pod"]
