kolla/docker/kolla-ansible/Dockerfile.j2
Sam Yaple a751d6e8ea Lock down ansible version
We can lock down to this alpha version as long as it works once. That
is the value of building an image here. We likely won't run into any
bugs if we can deploy from this tag at least once.

Change-Id: I864290260d7fbdcd8325748788d2454d1dc1a699
Closes-Bug: #1501455
2015-09-30 18:58:17 +00:00

33 lines
877 B
Django/Jinja

FROM {{ namespace }}/{{ image_prefix }}openstack-base:{{ tag }}
MAINTAINER Kolla Project (https://launchpad.net/kolla)
{% if base_distro in ['centos', 'fedora', 'oraclelinux', 'rhel'] %}
RUN yum -y install \
gcc \
libffi-devel \
libxml2-devel \
libxslt-devel \
openssl-devel \
python-devel \
openssh-clients \
&& yum clean all
RUN pip install -U pip wheel
{% endif %}
RUN pip --no-cache-dir install shade
RUN git clone --depth 1 -b v2.0.0-0.2.alpha2 https://github.com/ansible/ansible.git \
&& cd ansible \
&& git submodule update --init --recursive \
&& pip --no-cache-dir 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/
{{ include_footer }}