Skip to content

Commit de1e6cd

Browse files
committed
WIP Trino 475 (with storage connector 474)
1 parent a1ae9a1 commit de1e6cd

File tree

7 files changed

+102
-2
lines changed

7 files changed

+102
-2
lines changed
Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
From 1f5f2f18056f650b89f0399c188e3446975e1764 Mon Sep 17 00:00:00 2001
2+
From: Lukas Voetmand <[email protected]>
3+
Date: Fri, 6 Sep 2024 17:53:52 +0200
4+
Subject: Add CycloneDX plugin
5+
6+
---
7+
pom.xml | 17 +++++++++++++++++
8+
1 file changed, 17 insertions(+)
9+
10+
diff --git a/pom.xml b/pom.xml
11+
index ddd620e..bbfcb96 100644
12+
--- a/pom.xml
13+
+++ b/pom.xml
14+
@@ -545,6 +545,23 @@
15+
</dependency>
16+
</dependencies>
17+
</plugin>
18+
+ <plugin>
19+
+ <groupId>org.cyclonedx</groupId>
20+
+ <artifactId>cyclonedx-maven-plugin</artifactId>
21+
+ <version>2.9.1</version>
22+
+ <configuration>
23+
+ <projectType>application</projectType>
24+
+ <schemaVersion>1.6</schemaVersion>
25+
+ </configuration>
26+
+ <executions>
27+
+ <execution>
28+
+ <goals>
29+
+ <goal>makeBom</goal>
30+
+ </goals>
31+
+ <phase>package</phase>
32+
+ </execution>
33+
+ </executions>
34+
+ </plugin>
35+
</plugins>
36+
</build>
37+
</project>
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
upstream = "https://github.com/snowlift/trino-storage.git"
2+
base = "1b25d617940f14a844a43ee34aa705f7d11fbaf9"

trino-storage-connector/versions.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,4 +11,8 @@
1111
"product": "470",
1212
"java-devel": "23",
1313
},
14+
{
15+
"product": "474",
16+
"java-devel": "23",
17+
},
1418
]

trino/Dockerfile

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ FROM stackable/image/trino-storage-connector AS trino-storage-connector-image
66
FROM stackable/image/java-devel AS trino-builder
77

88
ARG PRODUCT
9+
ARG TRINO_STORAGE_CONNECTOR
910
ARG STACKABLE_USER_UID
1011
ARG JMX_EXPORTER
1112

@@ -26,8 +27,8 @@ RUN curl "https://repo.stackable.tech/repository/packages/trino-server/trino-ser
2627

2728
COPY --chown=${STACKABLE_USER_UID}:0 trino/stackable/patches/apply_patches.sh /stackable/trino-server-${PRODUCT}-src/patches/apply_patches.sh
2829
COPY --chown=${STACKABLE_USER_UID}:0 trino/stackable/patches/${PRODUCT} /stackable/trino-server-${PRODUCT}-src/patches/${PRODUCT}
29-
COPY --chown=${STACKABLE_USER_UID}:0 --from=trino-storage-connector-image /stackable/trino-storage-${PRODUCT}-src/target/trino-storage-${PRODUCT} \
30-
/stackable/trino-server-${PRODUCT}/plugin/trino-storage-${PRODUCT}/
30+
COPY --chown=${STACKABLE_USER_UID}:0 --from=trino-storage-connector-image /stackable/trino-storage-${TRINO_STORAGE_CONNECTOR}-src/target/trino-storage-${TRINO_STORAGE_CONNECTOR} \
31+
/stackable/trino-server-${PRODUCT}/plugin/trino-storage-${TRINO_STORAGE_CONNECTOR}/
3132
COPY --chown=${STACKABLE_USER_UID}:0 trino/stackable/jmx /stackable/jmx
3233

3334
# adding a hadolint ignore for SC2215, due to https://github.com/hadolint/hadolint/issues/980
@@ -49,7 +50,12 @@ git commit --allow-empty --message "Fake commit, so that we can create a tag"
4950
git tag ${PRODUCT}
5051

5152
# We need to use ./mvnw instead of mvn to get a recent maven version (which is required to build Trino)
53+
# trino-server-rpm was removed at some point of time
54+
if [[ "$PRODUCT" == "451" || "$PRODUCT" == "455" || "$PRODUCT" == "470" ]]; then
5255
./mvnw --batch-mode --no-transfer-progress package -DskipTests --projects="!docs,!core/trino-server-rpm"
56+
else
57+
./mvnw --batch-mode --no-transfer-progress package -DskipTests --projects="!docs"
58+
fi
5359

5460
# Delete intermediate build products to free some space and keep runners happy
5561
rm -r /stackable/trino-server-${PRODUCT}-src/plugin/*/target /stackable/trino-server-${PRODUCT}-src/core/trino-server/target/trino-server-${PRODUCT}
Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
From 88bcb8d5ff689504f112b8b149a282a01e6b4212 Mon Sep 17 00:00:00 2001
2+
From: Lukas Voetmand <[email protected]>
3+
Date: Fri, 6 Sep 2024 17:53:52 +0200
4+
Subject: Add CycloneDX plugin
5+
6+
---
7+
pom.xml | 18 ++++++++++++++++++
8+
1 file changed, 18 insertions(+)
9+
10+
diff --git a/pom.xml b/pom.xml
11+
index a1604d5ebec..3f9f7945046 100644
12+
--- a/pom.xml
13+
+++ b/pom.xml
14+
@@ -2814,6 +2814,24 @@
15+
</excludes>
16+
</configuration>
17+
</plugin>
18+
+ <plugin>
19+
+ <groupId>org.cyclonedx</groupId>
20+
+ <artifactId>cyclonedx-maven-plugin</artifactId>
21+
+ <version>2.9.1</version>
22+
+ <configuration>
23+
+ <projectType>application</projectType>
24+
+ <schemaVersion>1.6</schemaVersion>
25+
+ <skipNotDeployed>false</skipNotDeployed>
26+
+ </configuration>
27+
+ <executions>
28+
+ <execution>
29+
+ <goals>
30+
+ <goal>makeBom</goal>
31+
+ </goals>
32+
+ <phase>package</phase>
33+
+ </execution>
34+
+ </executions>
35+
+ </plugin>
36+
</plugins>
37+
</build>
38+
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
upstream = "https://github.com/trinodb/trino.git"
2+
base = "05bc059cf0c9263e4ee8be2c1ad69753d0dd4faf"

trino/versions.py

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,19 +5,30 @@
55
"java-devel": "22",
66
"jmx_exporter": "1.1.0",
77
"trino-storage-connector": "451",
8+
"trino_storage_connector": "451",
89
},
910
{
1011
"product": "455",
1112
"java-base": "22",
1213
"java-devel": "22",
1314
"jmx_exporter": "1.1.0",
1415
"trino-storage-connector": "455",
16+
"trino_storage_connector": "455",
1517
},
1618
{
1719
"product": "470",
1820
"java-base": "23",
1921
"java-devel": "23",
2022
"jmx_exporter": "1.1.0",
2123
"trino-storage-connector": "470",
24+
"trino_storage_connector": "470",
25+
},
26+
{
27+
"product": "475",
28+
"java-base": "23",
29+
"java-devel": "23",
30+
"jmx_exporter": "1.1.0",
31+
"trino-storage-connector": "474",
32+
"trino_storage_connector": "474",
2233
},
2334
]

0 commit comments

Comments
 (0)