961224c6cf
1. Enable customization of pip packages in source branch of most images 2. All pip packages install uniformly through install-pip macro, user can easily customize his own pip command (For example using a mirror) Co-Authored-By: Mauricio Lima <mauriciolimab@gmail.com> Change-Id: If09582039f690fa4136e8f33200d5da15e092da7
41 lines
1.1 KiB
Django/Jinja
41 lines
1.1 KiB
Django/Jinja
FROM {{ namespace }}/{{ image_prefix }}openstack-base:{{ tag }}
|
|
MAINTAINER {{ maintainer }}
|
|
|
|
{% block heat_base_header %}{% endblock %}
|
|
|
|
{% import "macros.j2" as macros with context %}
|
|
|
|
{{ macros.configure_user(name='heat') }}
|
|
|
|
{% if install_type == 'binary' %}
|
|
|
|
{% if base_distro in ['centos', 'oraclelinux', 'rhel'] %}
|
|
{% set heat_base_packages = ['openstack-heat-common'] %}
|
|
{% elif base_distro in ['ubuntu'] %}
|
|
{% set heat_base_packages = ['heat-common'] %}
|
|
{% endif %}
|
|
{{ macros.install_packages(heat_base_packages | customizable("packages")) }}
|
|
|
|
{% elif install_type == 'source' %}
|
|
|
|
ADD heat-base-archive /heat-base-source
|
|
|
|
{% set heat_base_pip_packages = [
|
|
'/heat'
|
|
] %}
|
|
|
|
RUN ln -s heat-base-source/* heat \
|
|
&& {{ macros.install_pip(heat_base_pip_packages | customizable("pip_packages")) }} \
|
|
&& mkdir -p /etc/heat \
|
|
&& cp -r /heat/etc/heat/* /etc/heat/ \
|
|
&& chown -R heat: /etc/heat
|
|
|
|
{% endif %}
|
|
|
|
COPY extend_start.sh /usr/local/bin/kolla_extend_start
|
|
|
|
RUN touch /usr/local/bin/kolla_heat_extend_start \
|
|
&& chmod 755 /usr/local/bin/kolla_extend_start /usr/local/bin/kolla_heat_extend_start
|
|
|
|
{% block heat_base_footer %}{% endblock %}
|