Skip to content

Commit

Permalink
[COMMON] don't build kafka again
Browse files Browse the repository at this point in the history
  • Loading branch information
chia7712 committed Nov 2, 2024
1 parent 7ad0846 commit ed256f7
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions docker/build_deps_image.sh
Original file line number Diff line number Diff line change
Expand Up @@ -41,17 +41,16 @@ 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"
}

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"
Expand Down

0 comments on commit ed256f7

Please sign in to comment.