Skip to content

Commit 3567973

Browse files
Zuulopenstack-gerrit
authored andcommitted
Merge "elasticsearch: install Java first on CentOS too" into stable/wallaby
2 parents 2b73f79 + 6a39d8e commit 3567973

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

docker/elasticsearch/elasticsearch/Dockerfile.j2

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,12 @@ LABEL maintainer="{{ maintainer }}" name="{{ image_name }}" build-date="{{ build
1212
{{ macros.enable_extra_repos(['elasticsearch']) }}
1313

1414
{% if base_package_type == 'rpm' %}
15+
16+
# NOTE(hrw): post-install script of elasticsearch fails when trying to
17+
# install elasticsearch and java together.
18+
{{ macros.install_packages(['java-11-openjdk-headless']) }}
19+
1520
{% set elasticsearch_packages = [
16-
'java-11-openjdk-headless',
1721
'elasticsearch-oss',
1822
] %}
1923

0 commit comments

Comments
 (0)