summaryrefslogtreecommitdiffstats
path: root/Dockerfile
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 /Dockerfile
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 'Dockerfile')
-rw-r--r--Dockerfile51
1 files changed, 0 insertions, 51 deletions
diff --git a/Dockerfile b/Dockerfile
deleted file mode 100644
index 1df887f32..000000000
--- a/Dockerfile
+++ /dev/null
@@ -1,51 +0,0 @@
-# Using playbook2image as a base
-# See https://github.com/aweiteka/playbook2image for details on the image
-# including documentation for the settings/env vars referenced below
-FROM docker.io/aweiteka/playbook2image:latest
-
-MAINTAINER OpenShift Team <dev@lists.openshift.redhat.com>
-
-LABEL name="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"
-
-USER root
-
-# Create a symlink to /opt/app-root/src so that files under /usr/share/ansible are accessible.
-# This is required since the system-container uses by default the playbook under
-# /usr/share/ansible/openshift-ansible. With this change we won't need to keep two different
-# configurations for the two images.
-RUN mkdir -p /usr/share/ansible/ && ln -s /opt/app-root/src /usr/share/ansible/openshift-ansible
-
-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)
-ENV PLAYBOOK_FILE=playbooks/byo/openshift_facts.yml \
- OPTS="-v" \
- INSTALL_OC=true
-
-# playbook2image's assemble script expects the source to be available in
-# /tmp/src (as per the source-to-image specs) so we import it there
-ADD . /tmp/src
-
-# Running the 'assemble' script provided by playbook2image will install
-# dependencies specified in requirements.txt and install the 'oc' client
-# as per the INSTALL_OC environment setting above
-RUN /usr/libexec/s2i/assemble
-
-# Add files for running as a system container
-COPY system-container/root /
-
-CMD [ "/usr/libexec/s2i/run" ]