IMPALA-13328: Fix missing krb5-config in building impala_quickstart_client docker image

Building the impala_quickstart_client docker image failed by krb5-config
not found. It's installed by the libkrb5-dev package. This patch adds it
to fix the build failure. Also improves
docker/publish_images_to_apache.sh to skip inexisting images (usually
due to not be built). Updates the quickstart_hms image to base on Ubuntu
18.04.

Also fixes an issue that docker/CMakeLists.txt doesn't dump all the
image names to docker/docker-images.txt

Tests:
 - Verified the quickstart images on MacOS.

Change-Id: Ieaa9878fa9cd9902ac883866c82e224889940615
Reviewed-on: http://gerrit.cloudera.org:8080/21725
Reviewed-by: Impala Public Jenkins <impala-public-jenkins@cloudera.com>
Tested-by: Impala Public Jenkins <impala-public-jenkins@cloudera.com>
This commit is contained in:
stiga-huang
2024-08-26 21:03:33 +08:00
committed by Impala Public Jenkins
parent 77a87bb103
commit daa7f8ad88
4 changed files with 8 additions and 2 deletions

View File

@@ -169,6 +169,8 @@ if (NOT ${DISTRO_BASE_IMAGE} STREQUAL "UNSUPPORTED")
ADD_DEPENDENCIES(docker_debug_images ${debug_target})
ADD_DEPENDENCIES(docker_debug_java11_images ${debug_java11_target})
ADD_DEPENDENCIES(docker_debug_java17_images ${debug_java17_target})
# add_daemon_docker_image modifies 'exported_image_names'. Publish it to the parent scope.
set(exported_image_names "${exported_image_names}" PARENT_SCOPE)
endfunction()
# Stamp out image targets for all of the Impala daemons.

View File

@@ -72,6 +72,10 @@ do
# with a prefix, e.g. IMPALA_QUICKSTART_IMAGE_PREFIX in the quickstart docker compose.
DST="${TARGET_REPO}:${VERSION}-${IMAGE}"
DIGEST=$(docker images --no-trunc --quiet "${IMAGE}")
if [[ -z $DIGEST ]]; then
echo "${IMAGE} image not found"
continue
fi
echo "Publishing ${IMAGE} (${DIGEST}) to ${DST}"
docker tag $IMAGE "$DST"
docker push "$DST"

View File

@@ -35,7 +35,7 @@ RUN apt-get update && \
apt-get install -y \
sudo netcat-openbsd less curl iproute2 vim iputils-ping \
libsasl2-dev libsasl2-2 libsasl2-modules libsasl2-modules-gssapi-mit \
tzdata krb5-user ${PIP} && \
tzdata krb5-user libkrb5-dev ${PIP} && \
apt-get clean && \
rm -rf /var/lib/apt/lists/*

View File

@@ -17,7 +17,7 @@
# Build a base HMS image for quickstart purposes.
ARG BASE_IMAGE=ubuntu:16.04
ARG BASE_IMAGE=ubuntu:18.04
FROM ${BASE_IMAGE}
# Common label arguments.