Dockerfile.rhel7 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. FROM rhel7.3:7.3-released
  2. MAINTAINER OpenShift Team <dev@lists.openshift.redhat.com>
  3. USER root
  4. # Playbooks, roles, and their dependencies are installed from packages.
  5. RUN INSTALL_PKGS="openshift-ansible atomic-openshift-clients python-boto python2-boto3 python2-crypto openssl iproute httpd-tools java-1.8.0-openjdk-headless" \
  6. && x86_EXTRA_RPMS=$(if [ "$(uname -m)" == "x86_64" ]; then echo -n google-cloud-sdk ; fi) \
  7. && yum repolist > /dev/null \
  8. && yum-config-manager --enable rhel-7-server-ose-3.7-rpms \
  9. && yum-config-manager --enable rhel-7-server-rh-common-rpms \
  10. && yum install -y --setopt=skip_missing_names_on_install=False --setopt=tsflags=nodocs $INSTALL_PKGS $x86_EXTRA_RPMS \
  11. && yum clean all
  12. LABEL name="openshift3/ose-ansible" \
  13. summary="OpenShift's installation and configuration tool" \
  14. description="A containerized openshift-ansible image to let you run playbooks to install, upgrade, maintain and check an OpenShift cluster" \
  15. url="https://github.com/openshift/openshift-ansible" \
  16. io.k8s.display-name="openshift-ansible" \
  17. io.k8s.description="A containerized openshift-ansible image to let you run playbooks to install, upgrade, maintain and check an OpenShift cluster" \
  18. io.openshift.expose-services="" \
  19. io.openshift.tags="openshift,install,upgrade,ansible" \
  20. com.redhat.component="aos3-installation-docker" \
  21. atomic.run="once"
  22. ENV USER_UID=1001 \
  23. HOME=/opt/app-root/src \
  24. WORK_DIR=/usr/share/ansible/openshift-ansible \
  25. ANSIBLE_CONFIG=/usr/share/ansible/openshift-ansible/ansible.cfg \
  26. OPTS="-v"
  27. # Add image scripts and files for running as a system container
  28. COPY root /
  29. RUN /usr/local/bin/user_setup \
  30. && mv /usr/local/bin/usage{.ocp,}
  31. USER ${USER_UID}
  32. WORKDIR ${WORK_DIR}
  33. ENTRYPOINT [ "/usr/local/bin/entrypoint" ]
  34. CMD [ "/usr/local/bin/run" ]