summaryrefslogtreecommitdiffstats
path: root/Dockerfile
blob: 7fca42b9ba29d29433e9ffd8c0134de21791b639 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
FROM rhel7

MAINTAINER Aaron Weitekamp <aweiteka@redhat.com>

RUN yum -y install http://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm

# Not sure if all of these packages are necessary
# only git and ansible are known requirements
RUN yum install -y --enablerepo rhel-7-server-extras-rpms net-tools bind-utils tmux git ansible

RUN git clone https://github.com/openshift/openshift-ansible.git /opt/openshift-ansible

CMD ansible-playbook /opt/openshift-ansible/playbooks/byo/config.yml

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