Dockerfile 666 B

123456789101112131415
  1. FROM rhel7
  2. MAINTAINER Aaron Weitekamp <aweiteka@redhat.com>
  3. RUN yum -y install http://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm
  4. # Not sure if all of these packages are necessary
  5. # only git and ansible are known requirements
  6. RUN yum install -y --enablerepo rhel-7-server-extras-rpms net-tools bind-utils tmux git ansible
  7. RUN git clone https://github.com/openshift/openshift-ansible.git /opt/openshift-ansible
  8. CMD ansible-playbook /opt/openshift-ansible/playbooks/byo/config.yml
  9. LABEL RUN docker run -it --rm --privileged --net=host -v ~/.ssh:/root/.ssh -v /etc/ansible/hosts:/etc/ansible/hosts --name NAME -e NAME=NAME -e IMAGE=IMAGE IMAGE