diff options
Diffstat (limited to 'docker/iscsid')
| -rw-r--r-- | docker/iscsid/Dockerfile.j2 | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/docker/iscsid/Dockerfile.j2 b/docker/iscsid/Dockerfile.j2 new file mode 100644 index 000000000..fef7a87ef --- /dev/null +++ b/docker/iscsid/Dockerfile.j2 @@ -0,0 +1,22 @@ +FROM {{ namespace }}/{{ image_prefix }}base:{{ tag }} +MAINTAINER {{ maintainer }} + +{% if base_distro in ['centos', 'fedora', 'oraclelinux', 'rhel'] %} + +RUN yum install -y \ + iscsi-initiator-utils \ + targetcli \ + python-rtslib \ + && yum clean all + +{% elif base_distro in ['ubuntu', 'debian'] %} + +RUN apt-get install -y --no-install-recommends \ + open-iscsi \ + targetcli \ + python-rtslib \ + && apt-get clean + +{% endif %} + +{{ include_footer }} |
