From 951eac1fcb83a36638ee7961fa5c01649cb66a1a Mon Sep 17 00:00:00 2001 From: Andrew Woodward Date: Fri, 3 Apr 2015 17:19:49 -0700 Subject: [PATCH] Add dockerfile to build container Split the main vagrant to remove items we cant do during docker build. Rename openstack -> kolla.yml since thats what it works with. --- Dockerfile | 17 +++++++++++++++++ Vagrantfile | 2 +- docker.yml | 9 +++++++++ openstack.yml => kolla.yml | 3 ++- main.yml | 6 ------ 5 files changed, 29 insertions(+), 8 deletions(-) create mode 100644 Dockerfile create mode 100644 docker.yml rename openstack.yml => kolla.yml (87%) diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 00000000..cf463228 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,17 @@ +FROM debian:jessie +MAINTAINER Andrew Woodward awoodward@mirantis.com + +ENV DEBIAN_FRONTEND noninteractive + +RUN apt-get update && apt-get -y install --fix-missing \ + curl \ + ssh \ + ansible \ + python-pip + +ADD . /vagrant/ +WORKDIR /vagrant + +RUN ansible-playbook -i "localhost," -c local main.yml + +VOLUME /vagrant \ No newline at end of file diff --git a/Vagrantfile b/Vagrantfile index e491bb36..89a5e321 100644 --- a/Vagrantfile +++ b/Vagrantfile @@ -8,7 +8,7 @@ init_script = <