diff --git a/docker/manila/manila-base/Dockerfile.j2 b/docker/manila/manila-base/Dockerfile.j2 index adbcc97116..24a951fd5c 100644 --- a/docker/manila/manila-base/Dockerfile.j2 +++ b/docker/manila/manila-base/Dockerfile.j2 @@ -2,10 +2,12 @@ FROM {{ namespace }}/{{ image_prefix }}openstack-base:{{ tag }} MAINTAINER {{ maintainer }} {% if install_type == 'binary' %} + {% if base_distro in ['centos', 'fedora', 'oraclelinux', 'rhel'] %} -RUN echo '{{ install_type }} not yet available for {{ base_distro }}' \ - && /bin/false +RUN yum -y install openstack-manila \ + && yum clean all + {% endif %} {% elif install_type == 'source' %} ADD manila-base-archive /manila-base-source diff --git a/docker/manila/manila-share/Dockerfile.j2 b/docker/manila/manila-share/Dockerfile.j2 index a3ca1820bb..8a57896ace 100644 --- a/docker/manila/manila-share/Dockerfile.j2 +++ b/docker/manila/manila-share/Dockerfile.j2 @@ -1,6 +1,15 @@ FROM {{ namespace }}/{{ image_prefix }}manila-base:{{ tag }} MAINTAINER {{ maintainer }} +{% if install_type == 'binary' %} + {% if base_distro in ['centos', 'fedora', 'oraclelinux', 'rhel'] %} + +RUN yum -y install openstack-manila-share \ + && yum clean all + + {% endif %} +{% endif %} + {{ include_footer }} USER manila diff --git a/tests/test_build.py b/tests/test_build.py index 8fec97ebbc..bfc334f969 100644 --- a/tests/test_build.py +++ b/tests/test_build.py @@ -47,8 +47,7 @@ class BuildTest(base.BaseTestCase): "murano-base", "ironic-pxe", "ironic-discoverd", - "mistral-base", - "manila-base"] + "mistral-base"] failures = 0 for image, result in six.iteritems(bad_results):