aboutsummaryrefslogtreecommitdiff
path: root/docker_templates
diff options
context:
space:
mode:
authorJenkins <jenkins@review.openstack.org>2015-08-19 16:01:02 +0000
committerGerrit Code Review <review@openstack.org>2015-08-19 16:01:02 +0000
commitb214523d58d83f672a15fad6faf2739137e43853 (patch)
treedf91954495f7a052bd414aa4809e360a623b1a0b /docker_templates
parentd04ee6b68c4e6d516e05834d56c375a78613ece4 (diff)
parent7f029b759c76babd46c7844860db447b62a02c28 (diff)
downloadkolla-b214523d58d83f672a15fad6faf2739137e43853.tar.gz
kolla-b214523d58d83f672a15fad6faf2739137e43853.zip
Merge "Add Dockerfile template for kolla-ansible"
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