aboutsummaryrefslogtreecommitdiff
path: root/docker/kolla-ansible/Dockerfile.j2
diff options
context:
space:
mode:
Diffstat (limited to 'docker/kolla-ansible/Dockerfile.j2')
-rw-r--r--docker/kolla-ansible/Dockerfile.j238
1 files changed, 38 insertions, 0 deletions
diff --git a/docker/kolla-ansible/Dockerfile.j2 b/docker/kolla-ansible/Dockerfile.j2
new file mode 100644
index 000000000..9975f5873
--- /dev/null
+++ b/docker/kolla-ansible/Dockerfile.j2
@@ -0,0 +1,38 @@
+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
+
+RUN pip install -U pip wheel
+
+{% elif base_distro in ['ubuntu', 'debian'] %}
+
+RUN apt-get install -y --no-install-recommends git
+
+{% endif %}
+
+RUN pip install shade
+
+RUN git clone --depth 1 https://github.com/ansible/ansible.git \
+ && cd ansible \
+ && git submodule update --init --recursive \
+ && pip install --install-option="--install-scripts=/usr/bin" .
+
+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/
+
+{{ include_footer }}