diff --git a/docker/cinder/cinder-volume/Dockerfile.j2 b/docker/cinder/cinder-volume/Dockerfile.j2 index 73ede467f6..2fe940de33 100644 --- a/docker/cinder/cinder-volume/Dockerfile.j2 +++ b/docker/cinder/cinder-volume/Dockerfile.j2 @@ -17,6 +17,15 @@ RUN apt-get -y install --no-install-recommends \ RUN sed -i '1 i include /var/lib/cinder/volumes/*' /etc/tgt/targets.conf +{% endif %} +{% if install_type == 'binary' %} +{% if base_distro in ['ubuntu', 'debian'] %} + +RUN apt-get -y install --no-install-recommends \ + cinder-volume \ + && apt-get clean + +{% endif %} {% endif %} COPY cinder_sudoers /etc/sudoers.d/cinder_sudoers