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

{% block skydive_base_header %}{% endblock %}

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

{{ macros.enable_extra_repos(['openvswitch']) }}
{{ macros.configure_user(name='skydive') }}

{% block skydive_version %}
ARG skydive_version=0.28.0
ARG skydive_url=https://github.com/skydive-project/skydive/releases/download/v${skydive_version}/skydive
{% endblock %}

{% block skydive_install %}

{% if base_arch != 'x86_64' %}
RUN echo 'image on {{ base_distro }} is not yet available on non x86_64 platforms' \
    && /bin/false
{% else %}
RUN curl -o /usr/bin/skydive ${skydive_url} \
    && chmod +x /usr/bin/skydive
{% endif %}

{% endblock %}

COPY extend_start.sh /usr/local/bin/kolla_extend_start
RUN chmod 644 /usr/local/bin/kolla_extend_start

{% block skydive_base_footer %}{% endblock %}