summaryrefslogtreecommitdiffstats
path: root/Dockerfile
diff options
context:
space:
mode:
authorjuanvallejo <jvallejo@redhat.com>2017-02-22 19:13:20 -0500
committerjuanvallejo <jvallejo@redhat.com>2017-03-23 12:01:01 -0400
commitd6e3f266e30cd88b750b574e1b21e469b4cd3167 (patch)
treecb976b8d8b4e6b1d2ded6bf619102d04aebef5db /Dockerfile
parent27e47d32dc795dd27e901ca8618c90b7c1303547 (diff)
downloadopenshift-d6e3f266e30cd88b750b574e1b21e469b4cd3167.tar.gz
openshift-d6e3f266e30cd88b750b574e1b21e469b4cd3167.tar.bz2
openshift-d6e3f266e30cd88b750b574e1b21e469b4cd3167.tar.xz
openshift-d6e3f266e30cd88b750b574e1b21e469b4cd3167.zip
add docker_image_availability check
This patch adds a check to ensure that required docker images are available in at least one of the registries supplied in an installation host. Images are available if they are either already present locally, or able to be inspected using Skopeo on one of the configured registries.
Diffstat (limited to 'Dockerfile')
-rw-r--r--Dockerfile9
1 files changed, 9 insertions, 0 deletions
diff --git a/Dockerfile b/Dockerfile
index c6593491d..eecf3630b 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -14,6 +14,15 @@ LABEL name="openshift-ansible" \
io.openshift.expose-services="" \
io.openshift.tags="openshift,install,upgrade,ansible"
+USER root
+
+RUN INSTALL_PKGS="skopeo" && \
+ yum install -y --setopt=tsflags=nodocs $INSTALL_PKGS && \
+ rpm -V $INSTALL_PKGS && \
+ yum clean all
+
+USER ${USER_UID}
+
# The playbook to be run is specified via the PLAYBOOK_FILE env var.
# This sets a default of openshift_facts.yml as it's an informative playbook
# that can help test that everything is set properly (inventory, sshkeys)