aboutsummaryrefslogtreecommitdiff
path: root/docker/watcher/watcher-engine/Dockerfile.j2
blob: 79c422f42fffbcd0ac1e9eafe03c34ea14d80374 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
FROM {{ namespace }}/{{ image_prefix }}watcher-base:{{ tag }}
LABEL maintainer="{{ maintainer }}" name="{{ image_name }}" build-date="{{ build_date }}"

{% block watcher_engine_header %}{% endblock %}

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

{% if install_type == 'binary' %}
    {% if base_distro in ['centos', 'oraclelinux', 'rhel'] %}
        {% set watcher_engine_packages = ['openstack-watcher-decision-engine'] %}
    {% elif base_distro in ['debian', 'ubuntu'] %}
        {% set watcher_engine_packages = ['watcher-decision-engine'] %}
    {% endif %}
{{ macros.install_packages(watcher_engine_packages | customizable("packages")) }}
{% endif %}

{% block watcher_engine_footer %}{% endblock %}
{% block footer %}{% endblock %}

USER watcher