5bdf514645
Refactor installing and initial setup of httpd and mod wsgi from individual services to base image. Change-Id: I651a55a9ebe258ef403d33de010a4dfb368a4021
40 lines
1.1 KiB
Django/Jinja
40 lines
1.1 KiB
Django/Jinja
FROM {{ namespace }}/{{ image_prefix }}nova-base:{{ tag }}
|
|
{% block labels %}
|
|
LABEL maintainer="{{ maintainer }}" name="{{ image_name }}" build-date="{{ build_date }}"
|
|
{% endblock %}
|
|
|
|
{% block nova_api_header %}{% endblock %}
|
|
|
|
{% import "macros.j2" as macros with context %}
|
|
|
|
{% if install_type == 'binary' %}
|
|
{% if base_package_type == 'rpm' %}
|
|
|
|
{% set nova_api_packages = [
|
|
'openstack-nova-api'
|
|
] %}
|
|
|
|
{{ macros.install_packages(nova_api_packages | customizable("packages")) }}
|
|
|
|
{% elif base_package_type == 'deb' %}
|
|
|
|
{% set nova_api_packages = [
|
|
'nova-api',
|
|
'python3-memcache'
|
|
] %}
|
|
|
|
{{ macros.install_packages(nova_api_packages | customizable("packages")) }}
|
|
{% endif %}
|
|
{% elif install_type == 'source' %}
|
|
|
|
{% set nova_api_packages = [
|
|
] %}
|
|
{{ macros.install_packages(nova_api_packages | customizable("packages")) }}
|
|
{% endif %}
|
|
|
|
COPY extend_start.sh /usr/local/bin/kolla_nova_extend_start
|
|
RUN chmod 755 /usr/local/bin/kolla_nova_extend_start
|
|
|
|
{% block nova_api_footer %}{% endblock %}
|
|
{% block footer %}{% endblock %}
|