a242b51bbc
- 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
33 lines
875 B
Django/Jinja
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 }}
|