Dockerfile 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. FROM centos:7
  2. MAINTAINER OpenShift Team <dev@lists.openshift.redhat.com>
  3. USER root
  4. LABEL name="openshift/origin-ansible" \
  5. summary="OpenShift's installation and configuration tool" \
  6. description="A containerized openshift-ansible image to use in CI - includes necessary packages to test clusters on AWS/GCP/Azure" \
  7. url="https://github.com/openshift/openshift-ansible" \
  8. io.k8s.display-name="openshift-ansible" \
  9. io.k8s.description="A containerized openshift-ansible image to use in CI - includes necessary packages to test clusters on AWS/GCP/Azure" \
  10. io.openshift.expose-services="" \
  11. io.openshift.tags="openshift,install,upgrade,ansible" \
  12. atomic.run="once"
  13. ENV USER_UID=1001 \
  14. HOME=/opt/app-root/src/ \
  15. WORK_DIR=/usr/share/ansible/openshift-ansible \
  16. OPTS="-v"
  17. # Add image scripts and files for running as a system container
  18. COPY images/installer/root /
  19. # Add origin repo for including the oc client
  20. COPY images/installer/origin-extra-root /
  21. # Install openshift-ansible RPMs
  22. RUN yum install -y epel-release && \
  23. yum-config-manager --enable built > /dev/null && \
  24. yum install --setopt=tsflags=nodocs -y \
  25. openshift-ansible-test && \
  26. yum clean all
  27. RUN /usr/local/bin/user_setup \
  28. && rm /usr/local/bin/usage.ocp
  29. USER ${USER_UID}
  30. WORKDIR ${WORK_DIR}
  31. ENTRYPOINT [ "/usr/local/bin/entrypoint" ]
  32. CMD [ "/usr/local/bin/run" ]