aboutsummaryrefslogtreecommitdiff
path: root/docker/tacker/tacker-conductor/Dockerfile.j2
blob: 2fe717c019f8b457afb99150c7a0bb2f3abd4f6c (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
FROM {{ namespace }}/{{ image_prefix }}tacker-base:{{ tag }}
LABEL maintainer="{{ maintainer }}" name="{{ image_name }}" build-date="{{ build_date }}"

{% block tacker_conductor_header %}{% endblock %}

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

{% if install_type == 'binary' %}

    {% if base_distro in ['centos', 'oraclelinux', 'rhel'] %}
        {% set tacker_conductor_packages = [
            'openstack-tacker'
        ] %}

    {% elif base_distro in ['debian', 'ubuntu'] %}

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

    {% endif %}

{{ macros.install_packages(tacker_conductor_packages | customizable("packages")) }}

{% endif %}

{% block tacker_conductor_footer %}{% endblock %}
{% block footer %}{% endblock %}

USER tacker