aboutsummaryrefslogtreecommitdiff
path: root/docker
diff options
context:
space:
mode:
authorMartin André <m.andre@redhat.com>2018-07-08 18:47:55 +0200
committerMartin André <m.andre@redhat.com>2018-07-10 16:30:56 +0200
commit11dcd27994e226bc5c4a9719518ca82b57d863e3 (patch)
tree2fb34cc643b21e8fbdef039745d259f643a10867 /docker
parent3a644f7764670b347d20caf680b35dfa0fdf2f03 (diff)
downloadkolla-11dcd27994e226bc5c4a9719518ca82b57d863e3.tar.gz
kolla-11dcd27994e226bc5c4a9719518ca82b57d863e3.zip
Switch to headless jre
Prefer the headless JRE wherever possible. This may be becessary to adjust the override files for the customization of the containers where java is installed. Change-Id: I3479ac9e74aa9e860cf01db20bd7ab5f5cfc9c1a
Diffstat (limited to 'docker')
-rw-r--r--docker/elasticsearch/Dockerfile.j26
-rw-r--r--docker/kafka/Dockerfile.j24
-rw-r--r--docker/opendaylight/Dockerfile.j218
-rw-r--r--docker/zookeeper/Dockerfile.j24
4 files changed, 20 insertions, 12 deletions
diff --git a/docker/elasticsearch/Dockerfile.j2 b/docker/elasticsearch/Dockerfile.j2
index 9c5c29670..665f739c0 100644
--- a/docker/elasticsearch/Dockerfile.j2
+++ b/docker/elasticsearch/Dockerfile.j2
@@ -10,15 +10,15 @@ LABEL maintainer="{{ maintainer }}" name="{{ image_name }}" build-date="{{ build
{% if base_distro in ['centos', 'oraclelinux', 'rhel'] %}
{% set elasticsearch_packages = [
'elasticsearch',
- 'java-1.8.0-openjdk'
+ 'java-1.8.0-openjdk-headless',
] %}
ENV JAVA_HOME /usr/lib/jvm/jre-1.8.0-openjdk/
{% elif base_distro in ['debian', 'ubuntu'] %}
{% set elasticsearch_packages = [
- 'elasticsearch',
- 'openjdk-8-jre'
+ 'default-jre-headless',
+ 'elasticsearch',
] %}
{% if base_arch == 'x86_64' %}
diff --git a/docker/kafka/Dockerfile.j2 b/docker/kafka/Dockerfile.j2
index 5eab225a9..ae6e83e5c 100644
--- a/docker/kafka/Dockerfile.j2
+++ b/docker/kafka/Dockerfile.j2
@@ -9,11 +9,11 @@ LABEL maintainer="{{ maintainer }}" name="{{ image_name }}" build-date="{{ build
{% if base_distro in ['centos', 'oraclelinux', 'rhel'] %}
{% set kafka_packages = [
- 'java-1.8.0-openjdk',
+ 'java-1.8.0-openjdk-headless',
] %}
{% elif base_distro in ['debian', 'ubuntu'] %}
{% set kafka_packages = [
- 'default-jre',
+ 'default-jre-headless',
] %}
{% endif %}
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 %}
diff --git a/docker/zookeeper/Dockerfile.j2 b/docker/zookeeper/Dockerfile.j2
index 81e893999..b2932ccf1 100644
--- a/docker/zookeeper/Dockerfile.j2
+++ b/docker/zookeeper/Dockerfile.j2
@@ -9,11 +9,11 @@ LABEL maintainer="{{ maintainer }}" name="{{ image_name }}" build-date="{{ build
{% if base_distro in ['centos', 'oraclelinux', 'rhel'] %}
{% set zookeeper_packages = [
- 'java-1.8.0-openjdk',
+ 'java-1.8.0-openjdk-headless',
] %}
{% elif base_distro in ['debian', 'ubuntu'] %}
{% set zookeeper_packages = [
- 'default-jre',
+ 'default-jre-headless',
] %}
{% endif %}