
Ubuntu distro package will create default wsgi conf in apache during gnocchi-api and aodh-api installation. We need to delete them since we only use the conf that pushed by kolla-ansible. Change-Id: Ib31e733eba12deebdf469c306dfba4191a1b89f5 Related-Bug: 1832306 Related-Bug: 1836520
26 lines
872 B
Django/Jinja
26 lines
872 B
Django/Jinja
FROM {{ namespace }}/{{ image_prefix }}aodh-base:{{ tag }}
|
|
LABEL maintainer="{{ maintainer }}" name="{{ image_name }}" build-date="{{ build_date }}"
|
|
|
|
{% block aodh_api_header %}{% endblock %}
|
|
|
|
{% import "macros.j2" as macros with context %}
|
|
|
|
{% if install_type == 'binary' %}
|
|
{% if base_package_type == 'rpm' %}
|
|
{% set aodh_api_packages = ['openstack-aodh-api'] %}
|
|
{% elif base_package_type == 'deb' %}
|
|
{% set aodh_api_packages = ['aodh-api'] %}
|
|
{% endif %}
|
|
{{ macros.install_packages(aodh_api_packages | customizable("packages")) }}
|
|
|
|
{% if base_package_type == 'deb' %}
|
|
RUN rm -rf /etc/apache2/sites-enabled/aodh-api.conf
|
|
{% endif %}
|
|
{% endif %}
|
|
|
|
COPY extend_start.sh /usr/local/bin/kolla_aodh_extend_start
|
|
RUN chmod 755 /usr/local/bin/kolla_aodh_extend_start
|
|
|
|
{% block aodh_api_footer %}{% endblock %}
|
|
{% block footer %}{% endblock %}
|