Dockerfile 1008 B

12345678910111213141516171819202122
  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. # Not sure if this repo is required
  8. RUN curl -o /etc/yum.repos.d/atomic-enterprise.repo http://mirror.ops.rhcloud.com/atomic/mirror/.atomic-enterprise-early-1/atomic-enterprise.repo
  9. RUN git clone https://github.com/projectatomic/atomic-enterprise-training.git \
  10. /opt/training && \
  11. git clone https://github.com/projectatomic/atomic-enterprise-ansible.git \
  12. /opt/atomic-enterprise-ansible
  13. CMD ansible-playbook /opt/atomic-enterprise-ansible/playbooks/byo/config.yml
  14. LABEL RUN docker run -it --rm --net=host -v ~/.ssh/id_rsa:/root/.ssh/id_rsa -v /etc/ansible/hosts:/etc/ansible/hosts --name NAME -e NAME=NAME -e IMAGE=IMAGE IMAGE