Dockerfile.rhel7 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  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" \
  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 java-1.8.0-openjdk-headless \
  11. && yum install -y --setopt=tsflags=nodocs $INSTALL_PKGS $x86_EXTRA_RPMS \
  12. && rpm -q $INSTALL_PKGS $x86_EXTRA_RPMS \
  13. && yum clean all
  14. LABEL name="openshift3/ose-ansible" \
  15. summary="OpenShift's installation and configuration tool" \
  16. description="A containerized openshift-ansible image to let you run playbooks to install, upgrade, maintain and check an OpenShift cluster" \
  17. url="https://github.com/openshift/openshift-ansible" \
  18. io.k8s.display-name="openshift-ansible" \
  19. io.k8s.description="A containerized openshift-ansible image to let you run playbooks to install, upgrade, maintain and check an OpenShift cluster" \
  20. io.openshift.expose-services="" \
  21. io.openshift.tags="openshift,install,upgrade,ansible" \
  22. com.redhat.component="aos3-installation-docker" \
  23. atomic.run="once"
  24. ENV USER_UID=1001 \
  25. HOME=/opt/app-root/src \
  26. WORK_DIR=/usr/share/ansible/openshift-ansible \
  27. ANSIBLE_CONFIG=/usr/share/ansible/openshift-ansible/ansible.cfg \
  28. OPTS="-v"
  29. # Add image scripts and files for running as a system container
  30. COPY root /
  31. RUN /usr/local/bin/user_setup \
  32. && mv /usr/local/bin/usage{.ocp,}
  33. USER ${USER_UID}
  34. WORKDIR ${WORK_DIR}
  35. ENTRYPOINT [ "/usr/local/bin/entrypoint" ]
  36. CMD [ "/usr/local/bin/run" ]