blob: d8e5181168826ab3c78fef952beaf7da8ead06bc (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
FROM {{ namespace }}/{{ image_prefix }}watcher-base:{{ tag }}
MAINTAINER {{ maintainer }}
{% block watcher_api_header %}{% endblock %}
{% import "macros.j2" as macros with context %}
{% if install_type == 'binary' %}
{% if base_distro in ['centos', 'oraclelinux', 'rhel'] %}
{% set watcher_api_packages = ['openstack-watcher-api'] %}
{% elif base_distro in ['ubuntu'] %}
{% set watcher_api_packages = ['watcher-api'] %}
{% endif %}
{{ macros.install_packages(watcher_api_packages | customizable("packages")) }}
{% endif %}
COPY extend_start.sh /usr/local/bin/kolla_watcher_extend_start
RUN chmod 755 /usr/local/bin/kolla_watcher_extend_start
{% block watcher_api_footer %}{% endblock %}
{% block footer %}{% endblock %}
USER watcher
|