summaryrefslogtreecommitdiffstats
path: root/images/installer/Dockerfile.rhel7
diff options
context:
space:
mode:
authorjupierce <jupierce@redhat.com>2017-05-08 10:26:09 -0400
committerjupierce <jupierce@redhat.com>2017-05-08 10:26:09 -0400
commitfbadeb45ce30d1726cc8881c7bd0264416819265 (patch)
tree974983e745f3cebb9542e0330f49a949b00a5985 /images/installer/Dockerfile.rhel7
parentb3f9e9ff4b8a7c69ec588ac9c5d0e9a8aa852f0a (diff)
downloadopenshift-fbadeb45ce30d1726cc8881c7bd0264416819265.tar.gz
openshift-fbadeb45ce30d1726cc8881c7bd0264416819265.tar.bz2
openshift-fbadeb45ce30d1726cc8881c7bd0264416819265.tar.xz
openshift-fbadeb45ce30d1726cc8881c7bd0264416819265.zip
Moving Dockerfile content to images dir
Diffstat (limited to 'images/installer/Dockerfile.rhel7')
-rw-r--r--images/installer/Dockerfile.rhel745
1 files changed, 45 insertions, 0 deletions
diff --git a/images/installer/Dockerfile.rhel7 b/images/installer/Dockerfile.rhel7
new file mode 100644
index 000000000..00841e660
--- /dev/null
+++ b/images/installer/Dockerfile.rhel7
@@ -0,0 +1,45 @@
+FROM openshift3/playbook2image
+
+MAINTAINER OpenShift Team <dev@lists.openshift.redhat.com>
+
+LABEL name="openshift3/openshift-ansible" \
+ summary="OpenShift's installation and configuration tool" \
+ description="A containerized openshift-ansible image to let you run playbooks to install, upgrade, maintain and check an OpenShift cluster" \
+ url="https://github.com/openshift/openshift-ansible" \
+ io.k8s.display-name="openshift-ansible" \
+ io.k8s.description="A containerized openshift-ansible image to let you run playbooks to install, upgrade, maintain and check an OpenShift cluster" \
+ io.openshift.expose-services="" \
+ io.openshift.tags="openshift,install,upgrade,ansible" \
+ com.redhat.component="aos3-installation-docker" \
+ version="v3.4.1" \
+ release="1" \
+ architecture="x86_64"
+
+# Playbooks, roles and their dependencies are installed from packages.
+# Unlike in Dockerfile, we don't invoke the 'assemble' script here
+# because all content and dependencies (like 'oc') is already
+# installed via yum.
+USER root
+RUN INSTALL_PKGS="atomic-openshift-utils atomic-openshift-clients python-boto" && \
+ yum repolist > /dev/null && \
+ yum-config-manager --enable rhel-7-server-ose-3.4-rpms && \
+ yum-config-manager --enable rhel-7-server-rh-common-rpms && \
+ yum install -y $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).
+# As the playbooks are installed via packages instead of being copied to
+# $APP_HOME by the 'assemble' script, we set the WORK_DIR env var to the
+# location of openshift-ansible.
+ENV PLAYBOOK_FILE=playbooks/byo/openshift_facts.yml \
+ WORK_DIR=/usr/share/ansible/openshift-ansible \
+ OPTS="-v"
+
+# Add files for running as a system container
+COPY system-container/root /
+
+CMD [ "/usr/libexec/s2i/run" ]