From 85650c381860b62fae0a0ea78bd4cbc74089c06c Mon Sep 17 00:00:00 2001 From: Jan Was Date: Wed, 25 May 2022 09:47:10 +0200 Subject: [PATCH] Make the docker image build script more verbose --- core/docker/build.sh | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/core/docker/build.sh b/core/docker/build.sh index 99b3dc574955..859fd3ebc80e 100755 --- a/core/docker/build.sh +++ b/core/docker/build.sh @@ -43,6 +43,7 @@ SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" >/dev/null 2>&1 && pwd)" cd "${SCRIPT_DIR}" || exit 2 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 "${SOURCE_DIR}/mvnw" -C dependency:get -Dtransitive=false -Dartifact="$artifactId" done @@ -52,10 +53,12 @@ if [ -n "$TRINO_VERSION" ]; then chmod +x "$trino_client" else TRINO_VERSION=$("${SOURCE_DIR}/mvnw" -f "${SOURCE_DIR}/pom.xml" --quiet help:evaluate -Dexpression=project.version -DforceStdout) + echo "๐ŸŽฏ Using currently built artifacts from the core/trino-server and client/trino-cli modules and version ${TRINO_VERSION}" trino_server="${SOURCE_DIR}/core/trino-server/target/trino-server-${TRINO_VERSION}.tar.gz" trino_client="${SOURCE_DIR}/client/trino-cli/target/trino-cli-${TRINO_VERSION}-executable.jar" fi +echo "๐Ÿงฑ Preparing the image build context directory" WORK_DIR="$(mktemp -d)" cp "$trino_server" "${WORK_DIR}/" cp "$trino_client" "${WORK_DIR}/" @@ -67,6 +70,7 @@ cp -R default "${WORK_DIR}/" TAG_PREFIX="trino:${TRINO_VERSION}" for arch in "${ARCHITECTURES[@]}"; do + echo "๐Ÿซ™ Building the image for $arch" docker build \ "${WORK_DIR}" \ --pull \ @@ -76,8 +80,10 @@ for arch in "${ARCHITECTURES[@]}"; do --build-arg "TRINO_VERSION=${TRINO_VERSION}" done +echo "๐Ÿงน Cleaning up the build context directory" rm -r "${WORK_DIR}" +echo "๐Ÿƒ Testing built images" source container-test.sh for arch in "${ARCHITECTURES[@]}"; do