From ed256f73a9896f76c7883d5eb91362e70c372c84 Mon Sep 17 00:00:00 2001 From: Chia-Ping Tsai Date: Sun, 3 Nov 2024 04:13:19 +0800 Subject: [PATCH] [COMMON] don't build kafka again --- docker/build_deps_image.sh | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/docker/build_deps_image.sh b/docker/build_deps_image.sh index ec402dccc3..b7d597b4a6 100755 --- a/docker/build_deps_image.sh +++ b/docker/build_deps_image.sh @@ -41,9 +41,8 @@ RUN ./gradlew clean build testClasses -x test --no-daemon WORKDIR /kafka RUN git clone https://github.com/apache/kafka.git /kafka -RUN ./gradlew clean build -x test -# download test dependencies RUN ./gradlew clean build testClasses -x test --no-daemon +# download test dependencies WORKDIR /root " >"$DOCKERFILE" @@ -51,7 +50,7 @@ WORKDIR /root function buildBaseImageIfNeed() { if [[ "$(docker images -q $IMAGE_NAME 2>/dev/null)" == "" ]]; then - docker build --no-cache -t "$IMAGE_NAME" -f "$DOCKERFILE" "$DOCKER_FOLDER" + docker build -t "$IMAGE_NAME" -f "$DOCKERFILE" "$DOCKER_FOLDER" docker push $IMAGE_NAME else echo "$IMAGE_NAME is existent in local"