Skip to content

Commit 530490a

Browse files
committed
opensearch: drop unnecessary workarounds
Change-Id: Id6db7ffb22b3f63e9a406455d52078b76071672f (cherry picked from commit b331679)
1 parent ee8c40c commit 530490a

File tree

2 files changed

+2
-21
lines changed

2 files changed

+2
-21
lines changed

docker/opensearch/opensearch-dashboards/Dockerfile.j2

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -12,17 +12,7 @@ LABEL maintainer="{{ maintainer }}" name="{{ image_name }}" build-date="{{ build
1212

1313
{% set opensearch_dashboards_packages = ['opensearch-dashboards'] %}
1414

15-
{% if base_package_type == 'rpm' %}
16-
{# TODO: OpenSearch will move from SHA1 in 2.8 release, remove this once 2.8 is out #}
17-
RUN update-crypto-policies --set DEFAULT:SHA1
18-
{% endif %}
19-
20-
{# TODO: ugly hack to get past opensearch postinst, remove once #}
21-
{# https://github.com/opensearch-project/opensearch-build/pull/3435 gets merged #}
22-
{# and packages get rebuilt #}
23-
RUN touch /usr/bin/systemd-tmpfiles && chmod a+rx /usr/bin/systemd-tmpfiles \
24-
&& {{ macros.install_packages(opensearch_dashboards_packages | customizable("packages"), chain=True) }} \
25-
&& rm -f /usr/bin/systemd-tmpfiles
15+
{{ macros.install_packages(opensearch_dashboards_packages | customizable("packages")) }}
2616

2717
COPY extend_start.sh /usr/local/bin/kolla_extend_start
2818
RUN chmod 755 /usr/local/bin/kolla_extend_start

docker/opensearch/opensearch/Dockerfile.j2

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -14,16 +14,7 @@ LABEL maintainer="{{ maintainer }}" name="{{ image_name }}" build-date="{{ build
1414
'opensearch'
1515
] %}
1616

17-
{% if base_package_type == 'rpm' %}
18-
{# TODO: OpenSearch will move from SHA1 in 2.8 release, remove this when 2.8 is out #}
19-
RUN update-crypto-policies --set DEFAULT:SHA1
20-
{% endif %}
21-
22-
{# TODO: ugly hack to get past opensearch postinst, remove once #}
23-
{# https://github.com/opensearch-project/opensearch-build/pull/3435 gets merged #}
24-
{# and packages get rebuilt #}
25-
RUN touch /usr/bin/systemd-tmpfiles && chmod a+rx /usr/bin/systemd-tmpfiles \
26-
&& {{ macros.install_packages(opensearch_packages | customizable("packages"), chain=True) }}
17+
{{ macros.install_packages(opensearch_packages | customizable("packages")) }}
2718

2819
COPY extend_start.sh /usr/local/bin/kolla_extend_start
2920
RUN chmod 755 /usr/local/bin/kolla_extend_start

0 commit comments

Comments
 (0)