Skip to content

Commit 774695c

Browse files
committed
install common OpenSearch plugins from Maven Central
1 parent d3638a9 commit 774695c

File tree

2 files changed

+61
-0
lines changed

2 files changed

+61
-0
lines changed

opensearch/Dockerfile

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,39 @@ RUN <<EOF
7676
# The JDK from jdk-base is used instead.
7777
rm -r jdk
7878

79+
# Install common plugins that are also used in the official image.
80+
#
81+
# TODO: The LTR plugin is currently missing because an official release for OpenSearch 3.x versions is missing.
82+
# There are tags for 3.x version in the git repo, so it can be built from source:
83+
# See https://github.com/opensearch-project/opensearch-learning-to-rank-base
84+
/stackable/opensearch-${PRODUCT_VERSION}-stackable${RELEASE_VERSION}/bin/opensearch-plugin \
85+
install \
86+
--batch \
87+
org.opensearch.plugin:alerting:${OPENSEARCH_ALERTING_PLUGIN_VERSION} \
88+
org.opensearch.plugin:opensearch-job-scheduler:${OPENSEARCH_JOB_SCHEDULER_PLUGIN_VERSION} \
89+
org.opensearch.plugin:opensearch-anomaly-detection:${OPENSEARCH_ANOMALY_DETECTION_PLUGIN_VERSION} \
90+
org.opensearch.plugin:asynchronous-search:${OPENSEARCH_ASYNCHRONOUS_SEARCH_VERSION} \
91+
org.opensearch.plugin:opensearch-cross-cluster-replication:${OPENSEARCH_CROSS_CLUSTER_REPLICATION_PLUGIN_VERSION} \
92+
org.opensearch.plugin:opensearch-custom-codecs:${OPENSEARCH_CUSTOM_CODECS_PLUGIN_VERSION} \
93+
org.opensearch.plugin:opensearch-flow-framework:${OPENSEARCH_FLOW_FRAMEWORK_PLUGIN_VERSION} \
94+
org.opensearch.plugin:geospatial:${OPENSEARCH_GEOSPATIAL_PLUGIN_VERSION} \
95+
org.opensearch.plugin:opensearch-index-management:${OPENSEARCH_INDEX_MANAGEMENT_PLUGIN_VERSION} \
96+
org.opensearch.plugin:opensearch-knn:${OPENSEARCH_KNN_PLUGIN_VERSION} \
97+
org.opensearch.plugin:opensearch-ml-plugin:${OPENSEARCH_ML_PLUGIN_VERSION} \
98+
org.opensearch.plugin:neural-search:${OPENSEARCH_NEURAL_SEARCH_PLUGIN_VERSION} \
99+
org.opensearch.plugin:opensearch-notifications-core:${OPENSEARCH_NOTIFICATIONS_CORE_PLUGIN_VERSION} \
100+
org.opensearch.plugin:notifications:${OPENSEARCH_NOTIFICATIONS_PLUGIN_VERSION} \
101+
org.opensearch.plugin:opensearch-observability:${OPENSEARCH_OBSERVABILITY_PLUGIN_VERSION} \
102+
org.opensearch.plugin:performance-analyzer:${OPENSEARCH_PERFORMANCE_ANALYZER_PLUGIN_VERSION} \
103+
org.opensearch.plugin:opensearch-reports-scheduler:${OPENSEARCH_REPORTS_SCHEDULER_PLUGIN_VERSION} \
104+
org.opensearch.plugin:opensearch-search-relevance:${OPENSEARCH_SEARCH_RELEVANCE_PLUGIN_VERSION} \
105+
org.opensearch.plugin:opensearch-security-analytics:${OPENSEARCH_SECURITY_ANALYTICS_PLUGIN_VERSION} \
106+
org.opensearch.plugin:opensearch-skills:${OPENSEARCH_SKILLS_PLUGIN_VERSION} \
107+
org.opensearch.plugin:opensearch-sql-plugin:${OPENSEARCH_SQL_PLUGIN_VERSION} \
108+
org.opensearch.plugin:opensearch-system-templates:${OPENSEARCH_SYSTEM_TEMPLATES_PLUGIN_VERSION} \
109+
org.opensearch.plugin:opensearch-ubi:${OPENSEARCH_UBI_PLUGIN_VERSION} \
110+
org.opensearch.plugin:query-insights:${QUERY_INSIGHTS_PLUGIN_VERSION}
111+
79112
# Change the group permissions already in the builder image to reduce
80113
# the size of the final image.
81114
# see https://github.com/stackabletech/docker-images/issues/961

opensearch/boil-config.toml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,31 @@ java-devel = "21"
33
jdk-base = "21"
44
"opensearch/security-plugin" = "3.1.0.0"
55
"opensearch/opensearch-prometheus-exporter" = "3.1.0.0"
6+
7+
[versions."3.1.0".build-arguments]
8+
"opensearch-alerting-plugin-version" = "3.1.0.0"
9+
"opensearch-anomaly-detection-plugin-version" = "3.1.0.0"
10+
"opensearch-asynchronous-search-plugin-version" = "3.1.0.0"
11+
"opensearch-cross-cluster-replication-plugin-version" = "3.1.0.0"
12+
"opensearch-custom-codecs-plugin-version" = "3.1.0.0"
13+
"opensearch-flow-framework-plugin-version" = "3.1.0.0"
14+
"opensearch-geospatial-plugin-version" = "3.1.0.0"
15+
"opensearch-index-management-plugin-version" = "3.1.0.0"
16+
"opensearch-job-scheduler-plugin-version" = "3.1.0.0"
17+
"opensearch-knn-plugin-version" = "3.1.0.0"
18+
"opensearch-ltr-plugin-version" = "3.1.0.0"
19+
"opensearch-ml-plugin-version" = "3.1.0.0"
20+
"opensearch-neural-search-plugin-version" = "3.1.0.0"
21+
"opensearch-notifications-plugin-version" = "3.1.0.0"
22+
"opensearch-notifications-core-plugin-version" = "3.1.0.0"
23+
"opensearch-observability-plugin-version" = "3.1.0.0"
24+
"opensearch-performance-analyzer-plugin-version" = "3.1.0.0"
25+
"opensearch-reports-scheduler-plugin-version" = "3.1.0.0"
26+
"opensearch-search-relevance-plugin-version" = "3.1.0.0"
27+
"opensearch-security-plugin-version" = "3.1.0.0"
28+
"opensearch-security-analytics-plugin-version" = "3.1.0.0"
29+
"opensearch-skills-plugin-version" = "3.1.0.0"
30+
"opensearch-sql-plugin-version" = "3.1.0.0"
31+
"opensearch-system-templates-plugin-version" = "3.1.0.0"
32+
"opensearch-ubi-plugin-version" = "3.1.0.0"
33+
"query-insights-plugin-version" = "3.1.0.0"

0 commit comments

Comments
 (0)