Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions core/docker/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,13 @@ while getopts ":a:h:r:j:" o; do
done
shift $((OPTIND - 1))

function check_environment() {
if ! command -v jq &> /dev/null; then
echo >&2 "Please install jq"
exit 1
fi
}

function temurin_jdk_link() {
local JDK_VERSION="${1}"
local ARCH="${2}"
Expand Down Expand Up @@ -79,6 +86,8 @@ function temurin_jdk_link() {
esac
}

check_environment

if [ -n "$TRINO_VERSION" ]; then
echo "🎣 Downloading server and client artifacts for release version ${TRINO_VERSION}"
for artifactId in io.trino:trino-server:"${TRINO_VERSION}":tar.gz io.trino:trino-cli:"${TRINO_VERSION}":jar:executable; do
Expand Down