aboutsummaryrefslogtreecommitdiff
path: root/docker/iscsid/Dockerfile.j2
blob: 7c38ad79c8409c4afb6c440232c9b22a0de8b5b6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
FROM {{ namespace }}/{{ image_prefix }}base:{{ tag }}
MAINTAINER {{ maintainer }}

{% if base_distro in ['centos', 'fedora', 'oraclelinux', 'rhel'] %}

RUN yum -y install \
        iscsi-initiator-utils \
        targetcli \
        python-rtslib \
    && yum clean all

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

RUN apt-get -y install --no-install-recommends \
        open-iscsi \
        targetcli \
        python-rtslib \
    && apt-get clean

{% endif %}

{{ include_footer }}