aboutsummaryrefslogtreecommitdiff
path: root/docker
diff options
context:
space:
mode:
authorMichaƂ Nasiadka <mnasiadka@gmail.com>2021-09-20 15:42:14 +0200
committerMichal Nasiadka <mnasiadka@gmail.com>2021-10-28 06:12:20 +0000
commit3d55f995a9945bf5e12050f6ba55edcfc17bc158 (patch)
treefa2c3ce02790b0c83f61ba0c579951c379938859 /docker
parente998831b9bbcb808effb0c92be5568cbcaf6142f (diff)
downloadkolla-3d55f995a9945bf5e12050f6ba55edcfc17bc158.tar.gz
kolla-3d55f995a9945bf5e12050f6ba55edcfc17bc158.zip
cinder-volume: Install binary python libs only in binary
Change-Id: Iee451db823a15b40f9e893c1febfd910c336ddec
Diffstat (limited to 'docker')
-rw-r--r--docker/cinder/cinder-volume/Dockerfile.j238
1 files changed, 20 insertions, 18 deletions
diff --git a/docker/cinder/cinder-volume/Dockerfile.j2 b/docker/cinder/cinder-volume/Dockerfile.j2
index f95cfb684..46407945d 100644
--- a/docker/cinder/cinder-volume/Dockerfile.j2
+++ b/docker/cinder/cinder-volume/Dockerfile.j2
@@ -11,42 +11,44 @@ LABEL maintainer="{{ maintainer }}" name="{{ image_name }}" build-date="{{ build
{% set cinder_volume_packages = [
'nfs-utils',
'nvmetcli',
- 'python3-rtslib',
- 'python3-cinderlib',
'sysfsutils',
'targetcli'
] %}
-{{ macros.install_packages(cinder_volume_packages | customizable("packages")) }}
-
-{% block cinder_volume_redhat_setup %}
-{% endblock %}
+ {% if install_type == 'binary' %}
+ {% set cinder_volume_packages = cinder_volume_packages + [
+ 'python3-rtslib'
+ ] %}
+ {% endif %}
{% elif base_package_type == 'deb' %}
{% set cinder_volume_packages = [
'nfs-common',
'sysfsutils',
- 'python3-rtslib-fb',
'targetcli-fb',
'thin-provisioning-tools',
'tgt'
] %}
+ {% if install_type == 'binary' %}
+ {% set cinder_volume_packages = cinder_volume_packages + [
+ 'cinder-volume',
+ 'python3-rtslib-fb'
+ ] %}
+ {% endif %}
+
+{% endif %}
{{ macros.install_packages(cinder_volume_packages | customizable("packages")) }}
-{% block cinder_volume_ubuntu_setup %}
-RUN sed -i '1 i include /var/lib/cinder/volumes/*' /etc/tgt/targets.conf
-{% endblock %}
+{% if base_package_type == 'rpm' %}
-{% endif %}
+{% block cinder_volume_redhat_setup %}
+{% endblock %}
-{% if install_type == 'binary' %}
- {% if base_package_type == 'deb' %}
- {% set cinder_volume_packages = [
- 'cinder-volume',
- ] %}
+{% elif base_package_type == 'deb' %}
-{{ macros.install_packages(cinder_volume_packages | customizable("packages")) }}
- {% endif %}
+{% block cinder_volume_ubuntu_setup %}
+RUN sed -i '1 i include /var/lib/cinder/volumes/*' /etc/tgt/targets.conf
+{% endblock %}
{% endif %}