diff options
author | Aaron Weitekamp <aweiteka@redhat.com> | 2015-07-08 17:35:21 -0400 |
---|---|---|
committer | Avesh Agarwal <avagarwa@redhat.com> | 2015-08-14 15:29:24 -0400 |
commit | 4fbdbe08f2560073a8b30801325d63f8de3cb9d6 (patch) | |
tree | 0fa09e06f258a6099cbf53153775f7bd457ca84c | |
parent | 16175aa7db9073ccc8173efea752a66f3b4a27c2 (diff) | |
download | openshift-4fbdbe08f2560073a8b30801325d63f8de3cb9d6.tar.gz openshift-4fbdbe08f2560073a8b30801325d63f8de3cb9d6.tar.bz2 openshift-4fbdbe08f2560073a8b30801325d63f8de3cb9d6.tar.xz openshift-4fbdbe08f2560073a8b30801325d63f8de3cb9d6.zip |
add RHEL7 Dockerfile
This Dockerfile packages ansible and the playbook as a container image.
It's a proof of concept as it makes some assumptions:
- bindmounts private key ~/.ssh/id_rsa
- default cmd executes the byo playbook
-rw-r--r-- | Dockerfile | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 000000000..7fac1f0c2 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,22 @@ +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 + +# Not sure if this repo is required +RUN curl -o /etc/yum.repos.d/atomic-enterprise.repo http://mirror.ops.rhcloud.com/atomic/mirror/.atomic-enterprise-early-1/atomic-enterprise.repo + +RUN git clone https://github.com/projectatomic/atomic-enterprise-training.git \ + /opt/training && \ + git clone https://github.com/projectatomic/atomic-enterprise-ansible.git \ + /opt/atomic-enterprise-ansible + +CMD ansible-playbook /opt/atomic-enterprise-ansible/playbooks/byo/config.yml + +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 + |