aboutsummaryrefslogtreecommitdiff
path: root/docker_templates
diff options
context:
space:
mode:
authorSam Yaple <sam@yaple.net>2015-08-15 01:38:35 +0000
committerSam Yaple <sam@yaple.net>2015-08-19 05:19:29 +0000
commit7f029b759c76babd46c7844860db447b62a02c28 (patch)
tree9ab652cd5f7f8d2ce27d9d655660eba316efcb52 /docker_templates
parent718db54fa80bbd892670a7a5c1eca5ad991f53eb (diff)
downloadkolla-7f029b759c76babd46c7844860db447b62a02c28.tar.gz
kolla-7f029b759c76babd46c7844860db447b62a02c28.zip
Add Dockerfile template for kolla-ansible
Change-Id: I53113d2a7595177839daebe74fa5bc409573f824 Partially-Implements: blueprint dockerfile-template
Diffstat (limited to 'docker_templates')
-rw-r--r--docker_templates/kolla-ansible/Dockerfile.j236
l---------docker_templates/kolla-ansible/kolla_keystone_service.py1
l---------docker_templates/kolla-ansible/kolla_keystone_user.py1
3 files changed, 38 insertions, 0 deletions
diff --git a/docker_templates/kolla-ansible/Dockerfile.j2 b/docker_templates/kolla-ansible/Dockerfile.j2
new file mode 100644
index 000000000..5fa1e5aec
--- /dev/null
+++ b/docker_templates/kolla-ansible/Dockerfile.j2
@@ -0,0 +1,36 @@
+FROM {{ namespace }}/{{ base_distro }}-{{ install_type }}-base:{{ tag }}
+MAINTAINER Kolla Project (https://launchpad.net/kolla)
+
+{% if base_distro in ['fedora', 'centos', 'oraclelinux'] %}
+
+RUN yum -y install \
+ git \
+ gcc \
+ libffi-devel \
+ libxml2-devel \
+ libxslt-devel \
+ MySQL-python \
+ openssl-devel \
+ python-devel \
+ openssh-clients \
+ && yum clean all
+
+{% elif base_distro in ['ubuntu', 'debian'] %}
+
+RUN echo '{{ install_type }} not yet available for {{ base_distro }}' \
+ && /bin/false
+
+{% endif %}
+
+RUN pip install -U pip wheel \
+ && pip install python-openstackclient shade
+
+RUN git clone https://github.com/ansible/ansible.git \
+ && cd ansible \
+ && git submodule update --init --recursive \
+ && pip install .
+
+RUN mkdir -p /etc/ansible /usr/share/ansible \
+ && echo 'localhost ansible_connection=local' > /etc/ansible/hosts
+
+COPY kolla_keystone_service.py kolla_keystone_user.py /usr/share/ansible/
diff --git a/docker_templates/kolla-ansible/kolla_keystone_service.py b/docker_templates/kolla-ansible/kolla_keystone_service.py
new file mode 120000
index 000000000..5e5632f17
--- /dev/null
+++ b/docker_templates/kolla-ansible/kolla_keystone_service.py
@@ -0,0 +1 @@
+../../docker/common/kolla-ansible/kolla_keystone_service.py \ No newline at end of file
diff --git a/docker_templates/kolla-ansible/kolla_keystone_user.py b/docker_templates/kolla-ansible/kolla_keystone_user.py
new file mode 120000
index 000000000..4d88dd8d5
--- /dev/null
+++ b/docker_templates/kolla-ansible/kolla_keystone_user.py
@@ -0,0 +1 @@
+../../docker/common/kolla-ansible/kolla_keystone_user.py \ No newline at end of file