
Implement the new Jinja2 based templating patterns for Cinder, as outlined in the below blueprint. Change-Id: I8d0131aff9cc406bd80ce384003308aee672412a Partially-implements: blueprint third-party-plugin-support
23 lines
530 B
Django/Jinja
23 lines
530 B
Django/Jinja
FROM {{ namespace }}/{{ image_prefix }}cinder-base:{{ tag }}
|
|
MAINTAINER {{ maintainer }}
|
|
|
|
{% import "macros.j2" as macros with context %}
|
|
|
|
{% if install_type == 'binary' %}
|
|
{% if base_distro in ['ubuntu'] %}
|
|
|
|
{% set cinder_backup_packages = [
|
|
'cinder-backup'
|
|
] %}
|
|
|
|
RUN {{ macros.install_packages(cinder_backup_packages | customizable("packages")) }}
|
|
|
|
{% endif %}
|
|
{% endif %}
|
|
|
|
{% block cinder_backup_footer %}{% endblock %}
|
|
{% block footer %}{% endblock %}
|
|
{{ include_footer }}
|
|
|
|
USER cinder
|