Skip to content

Commit 9c6d72d

Browse files
feat(opensearch): Add version 3.4.0 (#1391)
* opensearch: Add OpenSearch 3.4.0 * opensearch: Update the CycloneDX Gradle Plugin to version 3.1.0 * opensearch: Fix CycloneDX report path in OpenSearch 3.1.0 * opensearch: Make scripts in the security-plugin executable * opensearch: Upgrade the CycloneDX Gradle Plugins to the latest possible versions * Update changelog
1 parent 66d2191 commit 9c6d72d

22 files changed

+2278
-31
lines changed

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ All notable changes to this project will be documented in this file.
1010
- hive: Build [hive-metastore-opa-authorizer](https://github.com/boschglobal/hive-metastore-opa-authorizer) from source and add to image ([#1340]).
1111
- hive: Add `4.2.0` ([#1356]).
1212
- nifi: Add patches to replace process group root ID placeholder ([#1358]).
13+
- opensearch: Add `3.4.0` ([#1391]).
1314
- testing-tools: build testing tools subimages in workflow ([#1366]).
1415

1516
### Changed
@@ -48,6 +49,7 @@ All notable changes to this project will be documented in this file.
4849
[#1387]: https://github.com/stackabletech/docker-images/pull/1387
4950
[#1388]: https://github.com/stackabletech/docker-images/pull/1388
5051
[#1389]: https://github.com/stackabletech/docker-images/pull/1389
52+
[#1391]: https://github.com/stackabletech/docker-images/pull/1391
5153
[#1393]: https://github.com/stackabletech/docker-images/pull/1393
5254
[#1394]: https://github.com/stackabletech/docker-images/pull/1394
5355

opensearch/Dockerfile

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,7 @@ RUN <<EOF
8484
unzip opensearch-security-${OPENSEARCH_SECURITY_PLUGIN_VERSION}.zip
8585
rm opensearch-security-${OPENSEARCH_SECURITY_PLUGIN_VERSION}.zip
8686
mv config /stackable/opensearch-${PRODUCT_VERSION}/config/opensearch-security
87+
chmod 755 tools/*.sh
8788
EOF
8889

8990
WORKDIR /stackable/opensearch-prometheus-exporter
@@ -212,17 +213,17 @@ COPY \
212213
COPY \
213214
--chown=${STACKABLE_USER_UID}:0 \
214215
--from=opensearch-builder \
215-
/stackable/src/opensearch/patchable-work/worktree/${PRODUCT_VERSION}/build/reports/bom.json \
216+
/stackable/src/opensearch/patchable-work/worktree/${PRODUCT_VERSION}/build/reports/cyclonedx/bom.json \
216217
/stackable/opensearch-${PRODUCT_VERSION}-stackable${RELEASE_VERSION}.cdx.json
217218
COPY \
218219
--chown=${STACKABLE_USER_UID}:0 \
219220
--from=opensearch-security-plugin \
220-
/stackable/src/opensearch/security-plugin/patchable-work/worktree/${OPENSEARCH_SECURITY_PLUGIN_VERSION}/build/reports/bom.json \
221+
/stackable/src/opensearch/security-plugin/patchable-work/worktree/${OPENSEARCH_SECURITY_PLUGIN_VERSION}/build/reports/cyclonedx/bom.json \
221222
/stackable/opensearch-security-${OPENSEARCH_SECURITY_PLUGIN_VERSION}-stackable${RELEASE_VERSION}.cdx.json
222223
COPY \
223224
--chown=${STACKABLE_USER_UID}:0 \
224225
--from=opensearch-prometheus-exporter \
225-
/stackable/src/opensearch/opensearch-prometheus-exporter/patchable-work/worktree/${OPENSEARCH_OPENSEARCH_PROMETHEUS_EXPORTER_VERSION}/build/reports/bom.json \
226+
/stackable/src/opensearch/opensearch-prometheus-exporter/patchable-work/worktree/${OPENSEARCH_OPENSEARCH_PROMETHEUS_EXPORTER_VERSION}/build/reports/cyclonedx/bom.json \
226227
/stackable/opensearch-prometheus-exporter-${OPENSEARCH_OPENSEARCH_PROMETHEUS_EXPORTER_VERSION}-stackable${RELEASE_VERSION}.cdx.json
227228
COPY \
228229
--chown=${STACKABLE_USER_UID}:0 \

opensearch/boil-config.toml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,3 +28,34 @@ jdk-base = "21"
2828
"opensearch-system-templates-plugin-version" = "3.1.0.0"
2929
"opensearch-ubi-plugin-version" = "3.1.0.0"
3030
"query-insights-plugin-version" = "3.1.0.0"
31+
32+
[versions."3.4.0".local-images]
33+
java-devel = "24"
34+
jdk-base = "24"
35+
"opensearch/security-plugin" = "3.4.0.0"
36+
"opensearch/opensearch-prometheus-exporter" = "3.4.0.0"
37+
38+
[versions."3.4.0".build-arguments]
39+
"opensearch-alerting-plugin-version" = "3.4.0.0"
40+
"opensearch-job-scheduler-plugin-version" = "3.4.0.0"
41+
"opensearch-anomaly-detection-plugin-version" = "3.4.0.0"
42+
"opensearch-asynchronous-search-plugin-version" = "3.4.0.0"
43+
"opensearch-cross-cluster-replication-plugin-version" = "3.4.0.0"
44+
"opensearch-custom-codecs-plugin-version" = "3.4.0.0"
45+
"opensearch-flow-framework-plugin-version" = "3.4.0.0"
46+
"opensearch-geospatial-plugin-version" = "3.4.0.0"
47+
"opensearch-index-management-plugin-version" = "3.4.0.0"
48+
"opensearch-knn-plugin-version" = "3.4.0.0"
49+
"opensearch-ml-plugin-version" = "3.4.0.0"
50+
"opensearch-neural-search-plugin-version" = "3.4.0.0"
51+
"opensearch-notifications-core-plugin-version" = "3.4.0.0"
52+
"opensearch-notifications-plugin-version" = "3.4.0.0"
53+
"opensearch-observability-plugin-version" = "3.4.0.0"
54+
"opensearch-reports-scheduler-plugin-version" = "3.4.0.0"
55+
"opensearch-search-relevance-plugin-version" = "3.4.0.0"
56+
"opensearch-security-analytics-plugin-version" = "3.4.0.0"
57+
"opensearch-skills-plugin-version" = "3.4.0.0"
58+
"opensearch-sql-plugin-version" = "3.4.0.0"
59+
"opensearch-system-templates-plugin-version" = "3.4.0.0"
60+
"opensearch-ubi-plugin-version" = "3.4.0.0"
61+
"query-insights-plugin-version" = "3.4.0.0"
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,7 @@
11
[versions."3.1.0.0".local-images]
22
java-devel = "21"
3+
4+
[versions."3.4.0.0".local-images]
5+
# OpenSearch 3.4.0 bundles JDK 24, but the OpenSearch Prometheus Exporter can only be built with
6+
# JDK 21.
7+
java-devel = "21"
Lines changed: 14 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,22 @@
1-
From f89f753d1bc03598bfe129c367233fec6daee078 Mon Sep 17 00:00:00 2001
1+
From 57c1974f0c25ea3e9d1f92dfebdc707c5ec56801 Mon Sep 17 00:00:00 2001
22
From: Benedikt Labrenz <benedikt@labrenz.org>
33
Date: Tue, 12 Aug 2025 14:59:12 +0200
44
Subject: Add CycloneDX plugin
55

66
---
7-
build.gradle | 14 ++++++++++++++
8-
1 file changed, 14 insertions(+)
7+
build.gradle | 17 ++++++++++++++++-
8+
1 file changed, 16 insertions(+), 1 deletion(-)
99

1010
diff --git a/build.gradle b/build.gradle
11-
index 6c09118..d47ae14 100644
11+
index 6c09118..5401612 100644
1212
--- a/build.gradle
1313
+++ b/build.gradle
14-
@@ -63,6 +63,20 @@ buildscript {
14+
@@ -63,6 +63,21 @@ buildscript {
1515
}
1616
}
1717

1818
+plugins {
19-
+ id "org.cyclonedx.bom" version "2.3.1"
19+
+ id "org.cyclonedx.bom" version "2.4.1"
2020
+}
2121
+
2222
+cyclonedxBom {
@@ -25,10 +25,18 @@ index 6c09118..d47ae14 100644
2525
+ skipConfigs = ["compileClasspath", "testCompileClasspath"]
2626
+ projectType = "application"
2727
+ schemaVersion = "1.6"
28+
+ jsonOutput = file("build/reports/cyclonedx/bom.json")
2829
+ outputFormat = "json"
2930
+ componentVersion = versions.version
3031
+}
3132
+
3233
apply plugin: 'java'
3334
apply plugin: 'idea'
3435
apply plugin: 'opensearch.opensearchplugin'
36+
@@ -340,4 +355,4 @@ task bwcTestSuite(type: RestIntegTestTask) {
37+
38+
run {
39+
useCluster testClusters.integTest
40+
-}
41+
\ No newline at end of file
42+
+}
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
1+
mirror = "https://github.com/stackabletech/opensearch-prometheus-exporter"
12
base = "df60b43e34d0f7fba6be9e003924a413764df85e"
Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
From 3f41ca69b26548c060f79a50327ef94e252196c9 Mon Sep 17 00:00:00 2001
2+
From: Benedikt Labrenz <benedikt@labrenz.org>
3+
Date: Tue, 12 Aug 2025 14:59:12 +0200
4+
Subject: Add CycloneDX plugin
5+
6+
---
7+
build.gradle | 15 +++++++++++++++
8+
1 file changed, 15 insertions(+)
9+
10+
diff --git a/build.gradle b/build.gradle
11+
index e23dde9..2b16bb8 100644
12+
--- a/build.gradle
13+
+++ b/build.gradle
14+
@@ -35,6 +35,21 @@ buildscript {
15+
}
16+
}
17+
18+
+plugins {
19+
+ id "org.cyclonedx.bom" version "2.4.1"
20+
+}
21+
+
22+
+cyclonedxBom {
23+
+ includeConfigs = ["runtimeClasspath"]
24+
+ includeLicenseText = false
25+
+ skipConfigs = ["compileClasspath", "testCompileClasspath"]
26+
+ projectType = "application"
27+
+ schemaVersion = "1.6"
28+
+ jsonOutput = file("build/reports/cyclonedx/bom.json")
29+
+ outputFormat = "json"
30+
+ componentVersion = versions.version
31+
+}
32+
+
33+
apply plugin: 'java'
34+
apply plugin: 'idea'
35+
apply plugin: 'opensearch.opensearchplugin'
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
mirror = "https://github.com/stackabletech/opensearch-prometheus-exporter"
2+
base = "13da5f22750d6665fb9fc7b0d171265e67948c34"
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,5 @@
11
[versions."3.1.0.0".local-images]
22
java-devel = "21"
3+
4+
[versions."3.4.0.0".local-images]
5+
java-devel = "24"

opensearch/security-plugin/stackable/patches/3.1.0.0/0001-Add-CycloneDX-plugin.patch

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,25 @@
1-
From eb596aa60cc21369d742b8d73604a2aac2a70f59 Mon Sep 17 00:00:00 2001
1+
From 15a57e452a302bcd5a8cce512a16905bfab43778 Mon Sep 17 00:00:00 2001
22
From: dervoeti <lukas.krug@stackable.tech>
33
Date: Tue, 22 Jul 2025 09:52:55 +0200
44
Subject: Add CycloneDX plugin
55

66
---
7-
build.gradle | 11 +++++++++++
8-
1 file changed, 11 insertions(+)
7+
build.gradle | 12 ++++++++++++
8+
1 file changed, 12 insertions(+)
99

1010
diff --git a/build.gradle b/build.gradle
11-
index bb2e65ab..314bb7be 100644
11+
index bb2e65ab..15a882a2 100644
1212
--- a/build.gradle
1313
+++ b/build.gradle
1414
@@ -71,6 +71,7 @@ plugins {
1515
id 'eclipse'
1616
id "com.github.spotbugs" version "6.2.0"
1717
id "com.google.osdetector" version "1.7.3"
18-
+ id "org.cyclonedx.bom" version "2.3.1"
18+
+ id "org.cyclonedx.bom" version "2.4.1"
1919
}
2020

2121
allprojects {
22-
@@ -87,6 +88,16 @@ apply from: 'gradle/formatting.gradle'
22+
@@ -87,6 +88,17 @@ apply from: 'gradle/formatting.gradle'
2323
licenseFile = rootProject.file('LICENSE.txt')
2424
noticeFile = rootProject.file('NOTICE.txt')
2525

@@ -29,6 +29,7 @@ index bb2e65ab..314bb7be 100644
2929
+ skipConfigs = ["compileClasspath", "testCompileClasspath"]
3030
+ projectType = "application"
3131
+ schemaVersion = "1.6"
32+
+ jsonOutput = file("build/reports/cyclonedx/bom.json")
3233
+ outputFormat = "json"
3334
+ componentVersion = opensearch_build
3435
+}

0 commit comments

Comments
 (0)