From acfc409b9c41f2e4c66bbb3df2e3be5c27f945f0 Mon Sep 17 00:00:00 2001 From: Matthias Oesterheld Date: Fri, 17 Jul 2026 07:29:43 +0200 Subject: [PATCH] point opensearch location to dist instead of specific location, data node resolves opensearch dir --- docker/datanode/entrypoint.sh | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/docker/datanode/entrypoint.sh b/docker/datanode/entrypoint.sh index 4b44ecc3..252ec1ee 100755 --- a/docker/datanode/entrypoint.sh +++ b/docker/datanode/entrypoint.sh @@ -56,16 +56,7 @@ export GRAYLOG_DATANODE_OPENSEARCH_LOGS_LOCATION="${GRAYLOG_DATANODE_OPENSEARCH_ export GRAYLOG_DATANODE_OPENSEARCH_HTTP_PORT="${GRAYLOG_DATANODE_OPENSEARCH_HTTP_PORT:-9200}" export GRAYLOG_DATANODE_OPENSEARCH_TRANSPORT_PORT="${GRAYLOG_DATANODE_OPENSEARCH_TRANSPORT_PORT:-9300}" export GRAYLOG_DATANODE_NODE_NAME="${GRAYLOG_DATANODE_NODE_NAME:-"$HOSTNAME"}" - -# TODO: Bundle the OpenSearch version property in the tarball so we can read it -opensearch_dist="$(find "$GDN_APP_ROOT/dist" -maxdepth 1 -name 'opensearch-*-linux-*' -type d | sort -V | tail -1)" - -if [ -z "$opensearch_dist" ]; then - echo "ERROR: No OpenSearch distribution found in $GDN_APP_ROOT/dist" - exit 1 -fi - -export GRAYLOG_DATANODE_OPENSEARCH_LOCATION="$opensearch_dist" +export GRAYLOG_DATANODE_OPENSEARCH_LOCATION="$GDN_APP_ROOT/dist" # Settings for the graylog-datanode script export DATANODE_JVM_OPTIONS_FILE="${DATANODE_JVM_OPTIONS_FILE:-"$GDN_JVM_OPTIONS_FILE"}"