diff options
author | Brenton Leanhardt <bleanhar@redhat.com> | 2015-08-17 08:31:44 -0400 |
---|---|---|
committer | Brenton Leanhardt <bleanhar@redhat.com> | 2015-08-17 08:31:44 -0400 |
commit | 0fe45e2b9978b9f39693391d792fdf560f978021 (patch) | |
tree | 3678865a2e3423c649e2b00441921e8c10491946 /Dockerfile | |
parent | 30d653aa5b776afbf35c98b1b5e7436f8cb7123c (diff) | |
parent | 85c12d98930ae17c782e4d30bae5b1c0dfaadd4f (diff) | |
download | openshift-0fe45e2b9978b9f39693391d792fdf560f978021.tar.gz openshift-0fe45e2b9978b9f39693391d792fdf560f978021.tar.bz2 openshift-0fe45e2b9978b9f39693391d792fdf560f978021.tar.xz openshift-0fe45e2b9978b9f39693391d792fdf560f978021.zip |
Merge pull request #456 from aveshagarwal/ae-ansible-merge-container
AE->OSO ansible merge: ansible in container
Diffstat (limited to 'Dockerfile')
-rw-r--r-- | Dockerfile | 17 |
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 |