diff options
Diffstat (limited to 'docker/watcher/watcher-base')
| -rw-r--r-- | docker/watcher/watcher-base/Dockerfile.j2 | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/docker/watcher/watcher-base/Dockerfile.j2 b/docker/watcher/watcher-base/Dockerfile.j2 index 1e695dc0b..a2fa51032 100644 --- a/docker/watcher/watcher-base/Dockerfile.j2 +++ b/docker/watcher/watcher-base/Dockerfile.j2 @@ -3,10 +3,15 @@ MAINTAINER {{ maintainer }} {% block watcher_base_header %}{% endblock %} -{% if install_type == 'binary' %} +{% import "macros.j2" as macros with context %} -RUN echo '{{ install_type }} not yet available for {{ base_distro }}' \ - && /bin/false +{% if install_type == 'binary' %} + {% if base_distro in ['centos', 'oraclelinux', 'rhel'] %} + {% set watcher_base_packages = ['openstack-watcher-common'] %} + {% elif base_distro in ['ubuntu'] %} + {% set watcher_base_packages = ['watcher-common'] %} + {% endif %} +{{ macros.install_packages(watcher_base_packages | customizable("packages")) }} {% elif install_type == 'source' %} |
