kolla/docker/kolla-ansible/Dockerfile.j2
Sean Mooney a242b51bbc Regression: git is required to build from source on ubuntu
- this change fixes a regression of bug/1481560
- this change re-adds git to the openstack base image
  when building images from source on ubuntu.
- removed explicit git install from kolla-ansible

Closes-Bug: #1496561
Change-Id: Ia8a125e40bc6510af6d44c5317647be7ce27b0d6
2015-09-17 07:58:28 +01:00

33 lines
875 B
Django/Jinja

FROM {{ namespace }}/{{ base_distro }}-{{ install_type }}-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 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 }}