Dockerfile.rhel7 1.8 KB

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