summaryrefslogtreecommitdiffstats
path: root/Dockerfile
diff options
context:
space:
mode:
authorAvesh Agarwal <avagarwa@redhat.com>2015-08-14 15:28:42 -0400
committerAvesh Agarwal <avagarwa@redhat.com>2015-08-14 15:29:24 -0400
commit85c12d98930ae17c782e4d30bae5b1c0dfaadd4f (patch)
treebc6887e7dce3b1fff85a90457d7cec5679d48b5e /Dockerfile
parent8d60535de208a961958dc17f65adbbd03a166200 (diff)
downloadopenshift-85c12d98930ae17c782e4d30bae5b1c0dfaadd4f.tar.gz
openshift-85c12d98930ae17c782e4d30bae5b1c0dfaadd4f.tar.bz2
openshift-85c12d98930ae17c782e4d30bae5b1c0dfaadd4f.tar.xz
openshift-85c12d98930ae17c782e4d30bae5b1c0dfaadd4f.zip
Updated Dockerfile not to clone openshift-ansible repo.
Movied Dockerfile to openshift-ansible repo root and updated README_ANSIBLE_CONTAINER.md file.
Diffstat (limited to 'Dockerfile')
-rw-r--r--Dockerfile17
1 files changed, 17 insertions, 0 deletions
diff --git a/Dockerfile b/Dockerfile
new file mode 100644
index 000000000..ab16ca609
--- /dev/null
+++ b/Dockerfile
@@ -0,0 +1,17 @@
+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 git ansible
+
+ADD ./ /opt/openshift-ansible/
+
+ENTRYPOINT ["/usr/bin/ansible-playbook"]
+
+CMD ["/opt/openshift-ansible/playbooks/byo/config.yml"]
+
+LABEL RUN docker run -it --rm --privileged --net=host -v ~/.ssh:/root/.ssh -v /etc/ansible:/etc/ansible --name NAME -e NAME=NAME -e IMAGE=IMAGE IMAGE