diff --git a/docker/tacker/Dockerfile.j2 b/docker/tacker/Dockerfile.j2 index 8110cc08eb..f549e8d0aa 100644 --- a/docker/tacker/Dockerfile.j2 +++ b/docker/tacker/Dockerfile.j2 @@ -9,8 +9,19 @@ LABEL maintainer="{{ maintainer }}" name="{{ image_name }}" build-date="{{ build {% if install_type == 'binary' %} + {% if base_distro in ['centos', 'oraclelinux', 'rhel'] %} + {% set tacker_packages = [ + 'openstack-tacker' + ] %} + + {% elif base_distro in ['debian', 'ubuntu'] %} + RUN echo '{{ install_type }} not yet available for {{ base_distro }}' \ - && /bin/false + && /bin/false + + {% endif %} + +{{ macros.install_packages(tacker_packages | customizable("packages")) }} {% elif install_type == 'source' %} diff --git a/releasenotes/notes/tacker-rpm-binary-137dc2771bdfc5d3.yaml b/releasenotes/notes/tacker-rpm-binary-137dc2771bdfc5d3.yaml new file mode 100644 index 0000000000..30acf7629c --- /dev/null +++ b/releasenotes/notes/tacker-rpm-binary-137dc2771bdfc5d3.yaml @@ -0,0 +1,3 @@ +--- +features: + - Tacker images support binary build from rpm based distros. diff --git a/tests/test_build.py b/tests/test_build.py index ebbee7880c..47d7ed7570 100644 --- a/tests/test_build.py +++ b/tests/test_build.py @@ -85,7 +85,6 @@ class BuildTestCentosBinary(BuildTest, base.BaseTestCase): "searchlight-base", "senlin-base", "solum-base", - "tacker", "vitrage-base", "vmtp", "zun-base", @@ -207,7 +206,6 @@ class BuildTestOracleLinuxBinary(BuildTest, base.BaseTestCase): "searchlight-base", "senlin-base", "solum-base", - "tacker", "vitrage-base", "vmtp", "zun-base",