summaryrefslogtreecommitdiff
path: root/docker/watcher/watcher-base/Dockerfile.j2
blob: c389f675c8e2cf89d0822b0da78ddb41428b0b5e (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
FROM {{ namespace }}/{{ image_prefix }}openstack-base:{{ tag }}
{% block labels %}
LABEL maintainer="{{ maintainer }}" name="{{ image_name }}" build-date="{{ build_date }}"
{% endblock %}

{% block watcher_base_header %}{% endblock %}

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

{{ 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

{% block watcher_base_footer %}{% endblock %}