aboutsummaryrefslogtreecommitdiff
path: root/kolla/docker/watcher/watcher-base/Dockerfile.j2
blob: e5530842d187a7e10b5c72a2298c756d5f85b29c (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
29
30
31
32
FROM {{ namespace }}/{{ image_prefix }}openstack-base:{{ tag }}
{% block labels %}
LABEL maintainer="{{ maintainer }}" name="{{ image_name }}"
{% endblock %}

{% block watcher_base_header %}{% endblock %}

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

{{ macros.kolla_enable_base_repos() }}

{{ macros.configure_user(name='watcher') }}

ADD watcher-base-archive /watcher-base-source

{% set watcher_base_pip_packages = [
    '/watcher'
] %}

COPY extend_start.sh /usr/local/bin/kolla_extend_start

RUN ln -s watcher-base-source/* watcher \
    && {{ macros.install_pip(watcher_base_pip_packages | customizable("pip_packages")) }} \
    && mkdir -p /etc/watcher \
    && cp -r /watcher/etc/watcher/* /etc/watcher/ \
    && touch /usr/local/bin/kolla_watcher_extend_start \
    && chmod 644 /usr/local/bin/kolla_extend_start /usr/local/bin/kolla_watcher_extend_start

{{ macros.kolla_patch_sources() }}

{% block watcher_base_footer %}{% endblock %}
{{ macros.kolla_cleanup_repos() }}