summaryrefslogtreecommitdiff
path: root/docker/monasca/monasca-log-api/Dockerfile.j2
blob: 72d3d30f38ccb3bf9c0a308a771056713424b82c (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
FROM {{ namespace }}/{{ image_prefix }}monasca-base:{{ tag }}
LABEL maintainer="{{ maintainer }}" name="{{ image_name }}" build-date="{{ build_date }}"

{% block monasca_log_api_header %}{% endblock %}

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

{% if install_type == 'binary' %}

RUN echo '{{ install_type }} not yet available for {{ base_distro }}' \
    && /bin/false

{% elif install_type == 'source' %}

ADD monasca-log-api-archive /monasca-log-api-source
RUN ln -s monasca-log-api-source/* monasca-log \
    && {{ macros.install_pip(['/monasca-log'] | customizable("pip_packages")) }}

{% endif %}

{% block monasca_log_api_footer %}{% endblock %}

{% block footer %}{% endblock %}

USER monasca