Skip to content

Commit

Permalink
elasticsearch: install Java first on CentOS too
Browse files Browse the repository at this point in the history
elasticsearch-oss package fails to install if we install it with Java:

INFO:kolla.common.utils.elasticsearch:could not find java; set JAVA_HOME
INFO:kolla.common.utils.elasticsearch:error: %prein(elasticsearch-oss-0:6.8.23-1.noarch) scriptlet failed, exit status 1
INFO:kolla.common.utils.elasticsearch:�[91mError in PREIN scriptlet in rpm package elasticsearch-oss

Backport down to ussuri needed.

Change-Id: I72d7920acd8d15941c8c57a4186186212b273a38
(cherry picked from commit 976465c)
  • Loading branch information
Marcin Juszkiewicz committed Apr 5, 2022
1 parent 066851b commit 531dd44
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion docker/elasticsearch/elasticsearch/Dockerfile.j2
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,12 @@ LABEL maintainer="{{ maintainer }}" name="{{ image_name }}" build-date="{{ build
{{ macros.enable_extra_repos(['elasticsearch']) }}

{% if base_package_type == 'rpm' %}

# NOTE(hrw): post-install script of elasticsearch fails when trying to
# install elasticsearch and java together.
{{ macros.install_packages(['java-11-openjdk-headless']) }}

{% set elasticsearch_packages = [
'java-11-openjdk-headless',
'elasticsearch-oss',
] %}

Expand Down

0 comments on commit 531dd44

Please sign in to comment.