3c49991a86
OpenSearch Dashboards 2.16.0 discover page hangs after initial deployment due to an upstream bug [1]. This change fixes the issue by pinning OpenSearch Dashboards to 2.15. Note that it seemed safer not to pin OpenSearch to fix this issue, to avoid breaking deployments that have already deployed 2.16. [1] https://github.com/opensearch-project/OpenSearch-Dashboards/issues/7626 Closes-Bug: #2077319 Change-Id: I0de9928b2657ab5f31580325e866bff28f2b5510
39 lines
1.3 KiB
Django/Jinja
39 lines
1.3 KiB
Django/Jinja
FROM {{ namespace }}/{{ image_prefix }}base:{{ tag }}
|
|
{% block labels %}
|
|
LABEL maintainer="{{ maintainer }}" name="{{ image_name }}" build-date="{{ build_date }}"
|
|
{% endblock %}
|
|
|
|
{% block opensearch_header %}{% endblock %}
|
|
|
|
{% import "macros.j2" as macros with context %}
|
|
|
|
{{ macros.configure_user(name='opensearch-dashboards', shell='/bin/bash', homedir='/usr/share/opensearch-dashboards') }}
|
|
{{ macros.enable_extra_repos(['opensearch-dashboards']) }}
|
|
|
|
# NOTE(mgoddard): Pinning to 2.15 due to https://bugs.launchpad.net/kolla/+bug/2077319
|
|
{% if base_package_type == 'deb' %}
|
|
COPY apt_preferences_opensearch_dashboards /etc/apt/preferences.d/opensearch_dashboards
|
|
{% endif %}
|
|
|
|
{% if base_package_type == 'rpm' %}
|
|
{% set opensearch_dashboards_packages = [
|
|
'opensearch-dashboards-2.15.*'
|
|
] %}
|
|
{% elif base_package_type == 'deb' %}
|
|
{% set opensearch_dashboards_packages = [
|
|
'opensearch-dashboards'
|
|
] %}
|
|
{% endif %}
|
|
|
|
{{ macros.install_packages(opensearch_dashboards_packages | customizable("packages")) }}
|
|
|
|
RUN chown -R opensearch-dashboards:opensearch-dashboards /usr/share/opensearch-dashboards
|
|
|
|
COPY extend_start.sh /usr/local/bin/kolla_extend_start
|
|
RUN chmod 755 /usr/local/bin/kolla_extend_start
|
|
|
|
{% block opensearch_footer %}{% endblock %}
|
|
{% block footer %}{% endblock %}
|
|
|
|
USER opensearch-dashboards
|