Skip to content

Commit 27822b9

Browse files
committed
chore(trino-cli): Bump version to 477
1 parent d8c8617 commit 27822b9

4 files changed

Lines changed: 17 additions & 20 deletions

File tree

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ All notable changes to this project will be documented in this file.
3333
- airflow: Bump uvicorn dependency to `0.37.0` ([#1264]).
3434
- druid: Deprecate `33.0.0` ([#1263]).
3535
- opa: Deprecate `1.4.2` ([#1279]).
36+
- trino-cli: Bump to 477 ([#xxxx]).
3637

3738
### Removed
3839

trino-cli/Dockerfile

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,9 @@ COPY --chown=${STACKABLE_USER_UID}:0 trino-cli/licenses /licenses
2929
WORKDIR /stackable/trino-cli
3030

3131
RUN <<EOF
32-
curl -O "https://repo.stackable.tech/repository/packages/trino-cli/trino-cli-${PRODUCT_VERSION}-executable.jar"
33-
ln -s "trino-cli-${PRODUCT_VERSION}-executable.jar" trino-cli-executable.jar
32+
curl -O "https://repo.stackable.tech/repository/packages/trino-cli/trino-cli-${PRODUCT_VERSION}"
33+
chmod +x "trino-cli-${PRODUCT_VERSION}"
34+
ln -s "trino-cli-${PRODUCT_VERSION}" trino-cli
3435

3536
# All files and folders owned by root group to support running as arbitrary users.
3637
# This is best practice as all container users will belong to the root group (0).
@@ -46,4 +47,4 @@ EOF
4647
# ----------------------------------------
4748

4849
USER ${STACKABLE_USER_UID}
49-
ENTRYPOINT ["java", "-jar", "/stackable/trino-cli/trino-cli-executable.jar"]
50+
ENTRYPOINT ["/stackable/trino-cli/trino-cli"]

trino-cli/boil-config.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
[versions."476".local-images]
1+
[versions."477".local-images]
22
java-base = "24"

trino-cli/upload_new_trino_version.sh

Lines changed: 11 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -31,19 +31,16 @@ trap cleanup EXIT
3131

3232
cd "$WORK_DIR" || exit
3333

34-
bin_file=trino-cli-${VERSION}-executable.jar
35-
36-
echo "Downloading Trino (this can take a while, it is intentionally downloading from a slow mirror that contains all old versions)"
37-
curl --fail -LO --progress-bar "https://repo1.maven.org/maven2/io/trino/trino-cli/${VERSION}/${bin_file}"
38-
curl --fail -LO --progress-bar "https://repo1.maven.org/maven2/io/trino/trino-cli/${VERSION}/${bin_file}.asc"
39-
curl --fail -LO --progress-bar "https://repo1.maven.org/maven2/io/trino/trino-cli/${VERSION}/${bin_file}.sha1"
40-
41-
# It is probably redundant to check both the checksum and the signature but it's cheap and why not
42-
echo "Validating SHA1 Checksum"
43-
if ! (sha1sum "${bin_file}" | cut -d " " -f 1 | diff -Z - "${bin_file}.sha1"); then
44-
echo "ERROR: The SHA1 sum does not match"
45-
exit 1
46-
fi
34+
echo "Downloading Trino"
35+
# Since Trno version 477, the CLI is only available as a GitHub release and not on Maven repository anymore.
36+
curl --fail -LO --progress-bar "https://github.com/trinodb/trino/releases/download/${VERSION}/trino-cli-${VERSION}"
37+
38+
# The GitHub releases don't provide SHA1 checksums. That's why we currently don't validate the checksum.
39+
# echo "Validating SHA1 Checksum"
40+
# if ! (sha1sum "${bin_file}" | cut -d " " -f 1 | diff -Z - "${bin_file}.sha1"); then
41+
# echo "ERROR: The SHA1 sum does not match"
42+
# exit 1
43+
# fi
4744

4845
# echo "Adding pinned public key for signature"
4946
# # We lock the public key here until trino has a better workflow for signing
@@ -89,9 +86,7 @@ fi
8986

9087
echo "Uploading everything to Nexus"
9188
EXIT_STATUS=0
92-
curl --fail -o /dev/null --progress-bar -u "$NEXUS_USER:$NEXUS_PASSWORD" --upload-file "${bin_file}" 'https://repo.stackable.tech/repository/packages/trino-cli/' || EXIT_STATUS=$?
93-
curl --fail -o /dev/null --progress-bar -u "$NEXUS_USER:$NEXUS_PASSWORD" --upload-file "${bin_file}.asc" 'https://repo.stackable.tech/repository/packages/trino-cli/' || EXIT_STATUS=$?
94-
curl --fail -o /dev/null --progress-bar -u "$NEXUS_USER:$NEXUS_PASSWORD" --upload-file "${bin_file}.sha1" 'https://repo.stackable.tech/repository/packages/trino-cli/' || EXIT_STATUS=$?
89+
curl --fail -o /dev/null --progress-bar -u "$NEXUS_USER:$NEXUS_PASSWORD" --upload-file "trino-cli-${VERSION}" 'https://repo.stackable.tech/repository/packages/trino-cli/' || EXIT_STATUS=$?
9590

9691
if [ $EXIT_STATUS -ne 0 ]; then
9792
echo "ERROR: Upload failed"

0 commit comments

Comments
 (0)