aboutsummaryrefslogtreecommitdiff
path: root/docker/opendaylight
diff options
context:
space:
mode:
authorZuul <zuul@review.openstack.org>2018-07-13 11:53:29 +0000
committerGerrit Code Review <review@openstack.org>2018-07-13 11:53:30 +0000
commit3d273521817ef19191332cf80274174f4c978701 (patch)
treef72c75a472989bd333fc00730f3ae9b62f832874 /docker/opendaylight
parentbd5302f0ee917aaa354950ec26d96b79ef857395 (diff)
parent11dcd27994e226bc5c4a9719518ca82b57d863e3 (diff)
downloadkolla-3d273521817ef19191332cf80274174f4c978701.tar.gz
kolla-3d273521817ef19191332cf80274174f4c978701.zip
Merge "Switch to headless jre"
Diffstat (limited to 'docker/opendaylight')
-rw-r--r--docker/opendaylight/Dockerfile.j218
1 files changed, 13 insertions, 5 deletions
diff --git a/docker/opendaylight/Dockerfile.j2 b/docker/opendaylight/Dockerfile.j2
index 8a005b379..75b0ca143 100644
--- a/docker/opendaylight/Dockerfile.j2
+++ b/docker/opendaylight/Dockerfile.j2
@@ -9,11 +9,19 @@ LABEL maintainer="{{ maintainer }}" name="{{ image_name }}" build-date="{{ build
{% block opendaylight_install %}
-{% set opendaylight_packages = ['opendaylight'] %}
-{% if base_distro in ['debian', 'ubuntu'] %}
-# NOTE(egonzalez): ODL fails to install in debian family images with
-# existing odl user. First install odl and then allow usage of
-# install_packages macro for custom configs.
+{% if base_distro in ['centos', 'oraclelinux', 'rhel'] %}
+ {% set opendaylight_packages = [
+ 'java-1.8.0-openjdk-headless',
+ 'opendaylight',
+ ] %}
+{% elif base_distro in ['debian', 'ubuntu'] %}
+ {% set opendaylight_packages = [
+ 'default-jre-headless',
+ 'opendaylight',
+ ] %}
+ # NOTE(egonzalez): ODL fails to install in debian family images with
+ # existing odl user. First install odl and then allow usage of
+ # install_packages macro for custom configs.
{% block debian_opendaylight_install_fix_block %}
{{ macros.debian_opendaylight_existing_user_fix() }}
{% endblock %}