summaryrefslogtreecommitdiff
path: root/docker/cinder/cinder-backup/Dockerfile.j2
blob: 5e88f6a7d5cb97f2a2e8b9a9e7946b9fa068e94b (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
34
35
36
37
38
FROM {{ namespace }}/{{ image_prefix }}cinder-base:{{ tag }}
LABEL maintainer="{{ maintainer }}" name="{{ image_name }}" build-date="{{ build_date }}"

{% block cinder_backup_header %}{% endblock %}

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

{% if install_type == 'binary' %}
    {% if base_package_type == 'rpm' %}
        {% set cinder_backup_packages = [
                'nfs-utils'
        ] %}
    {% elif base_package_type == 'deb' %}
        {% set cinder_backup_packages = [
                'cinder-backup',
                'nfs-common'
        ] %}
    {% endif %}

{% elif install_type == 'source' %}
    {% if base_package_type == 'rpm' %}
        {% set cinder_backup_packages = [
                'nfs-utils'
        ] %}
     {% elif base_package_type == 'deb' %}
        {% set cinder_backup_packages = [
                'nfs-common'
        ] %}
    {% endif %}

{% endif %}

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

{% block cinder_backup_footer %}{% endblock %}
{% block footer %}{% endblock %}

USER cinder