aboutsummaryrefslogtreecommitdiff
path: root/docker/nova/nova-base
diff options
context:
space:
mode:
Diffstat (limited to 'docker/nova/nova-base')
-rw-r--r--docker/nova/nova-base/Dockerfile.j212
1 files changed, 11 insertions, 1 deletions
diff --git a/docker/nova/nova-base/Dockerfile.j2 b/docker/nova/nova-base/Dockerfile.j2
index cfbb5e5bb..f64664f65 100644
--- a/docker/nova/nova-base/Dockerfile.j2
+++ b/docker/nova/nova-base/Dockerfile.j2
@@ -12,10 +12,20 @@ LABEL maintainer="{{ maintainer }}" name="{{ image_name }}" build-date="{{ build
{% set nova_base_packages = [
'openstack-nova-common',
- 'openvswitch',
+ 'openvswitch'
+ ] %}
+
+ {% if distro_python_version.startswith('3') %}
+ {% set nova_base_packages = nova_base_packages + [
+ 'python3-cinderclient',
+ 'python3-keystoneclient'
+ ] %}
+ {% else %}
+ {% set nova_base_packages = nova_base_packages + [
'python-cinderclient',
'python-keystoneclient'
] %}
+ {% endif %}
{% if base_arch == 'x86_64' %}
{% if base_distro in ['centos', 'oraclelinux', 'rhel'] and base_distro_tag.startswith('7') %}