87730f8f7c
There is small subset of images where we need to know which install_type or install_metatype is used. So add them only there (and their children). Change-Id: Ib7d5e36b958d6c8daf2989df32e29fa24b46c62a Implements: blueprint infra-images
29 lines
858 B
Django/Jinja
29 lines
858 B
Django/Jinja
FROM {{ namespace }}/{{ infra_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.configure_user(name='skydive') }}
|
|
|
|
{% 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 -L "https://github.com/skydive-project/skydive/releases/download/v0.26.0/skydive" \
|
|
&& chmod +x /usr/bin/skydive
|
|
{% endif %}
|
|
|
|
{% endblock %}
|
|
|
|
COPY extend_start.sh /usr/local/bin/kolla_extend_start
|
|
RUN chmod 755 /usr/local/bin/kolla_extend_start
|
|
|
|
{% block skydive_base_footer %}{% endblock %}
|
|
{% block footer %}{% endblock %}
|