Customizations for iscsid
This patchset contains customization of Dockerfile of iscsid container Change-Id: Ibca1b944d3eacf03c945eb808f43326c3ef20c97 Partially-implements: blueprint third-party-plugin-support
This commit is contained in:
parent
6350b99fad
commit
e418a04e35
@ -1,22 +1,26 @@
|
|||||||
FROM {{ namespace }}/{{ image_prefix }}base:{{ tag }}
|
FROM {{ namespace }}/{{ image_prefix }}base:{{ tag }}
|
||||||
MAINTAINER {{ maintainer }}
|
MAINTAINER {{ maintainer }}
|
||||||
|
|
||||||
{% if base_distro in ['centos', 'fedora', 'oraclelinux', 'rhel'] %}
|
{% import "macros.j2" as macros with context %}
|
||||||
|
|
||||||
RUN yum -y install \
|
{% if base_distro in ['centos', 'fedora', 'oraclelinux', 'rhel'] %}
|
||||||
iscsi-initiator-utils \
|
{% set iscsid_packages = [
|
||||||
targetcli \
|
'iscsi-initiator-utils',
|
||||||
python-rtslib \
|
'targetcli',
|
||||||
&& yum clean all
|
'python-rtslib'
|
||||||
|
] %}
|
||||||
|
|
||||||
{% elif base_distro in ['ubuntu', 'debian'] %}
|
{% elif base_distro in ['ubuntu', 'debian'] %}
|
||||||
|
{% set iscsid_packages = [
|
||||||
RUN apt-get -y install --no-install-recommends \
|
'open-iscsi',
|
||||||
open-iscsi \
|
'targetcli',
|
||||||
targetcli \
|
'python-rtslib'
|
||||||
python-rtslib \
|
] %}
|
||||||
&& apt-get clean
|
|
||||||
|
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
|
RUN {{ macros.install_packages(iscsid_packages | customizable("packages")) }}
|
||||||
|
|
||||||
|
{% block iscsid_footer %}{% endblock %}
|
||||||
|
{% block footer %}{% endblock %}
|
||||||
{{ include_footer }}
|
{{ include_footer }}
|
||||||
|
Loading…
Reference in New Issue
Block a user