Dockerfile.rhel7 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  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. version="v3.6.0" \
  24. release="1" \
  25. architecture="x86_64" \
  26. atomic.run="once"
  27. ENV USER_UID=1001 \
  28. HOME=/opt/app-root/src \
  29. WORK_DIR=/usr/share/ansible/openshift-ansible \
  30. ANSIBLE_CONFIG=/usr/share/ansible/openshift-ansible/ansible.cfg \
  31. OPTS="-v"
  32. # Add image scripts and files for running as a system container
  33. COPY root /
  34. RUN /usr/local/bin/user_setup \
  35. && mv /usr/local/bin/usage{.ocp,}
  36. USER ${USER_UID}
  37. WORKDIR ${WORK_DIR}
  38. ENTRYPOINT [ "/usr/local/bin/entrypoint" ]
  39. CMD [ "/usr/local/bin/run" ]