summaryrefslogtreecommitdiff
path: root/docker/gnocchi/gnocchi-api/Dockerfile.j2
blob: 535831cffde2bec2d7c8827d237fc7c3778ffb51 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
FROM {{ namespace }}/{{ image_prefix }}gnocchi-base:{{ tag }}
LABEL maintainer="{{ maintainer }}" name="{{ image_name }}" build-date="{{ build_date }}"

{% block gnocchi_api_header %}{% endblock %}

{% import "macros.j2" as macros with context %}

{% if install_type == 'binary' %}
    {% if base_package_type == 'rpm' %}
       {% set gnocchi_api_packages = [
            'gnocchi-api',
            'gnocchi-common'
        ] %}
    {% elif base_package_type == 'deb' %}
        {% set gnocchi_api_packages = ['gnocchi-api'] %}
    {% endif %}
{{ macros.install_packages(gnocchi_api_packages | customizable("packages")) }}

    {% if base_package_type == 'deb' %}
RUN rm -rf /etc/apache2/sites-enabled/gnocchi-api.conf
    {% endif %}
{% endif %}

COPY extend_start.sh /usr/local/bin/kolla_gnocchi_extend_start
RUN chmod 755 /usr/local/bin/kolla_gnocchi_extend_start

{% block gnocchi_api_footer %}{% endblock %}
{% block footer %}{% endblock %}