@@ -20,7 +20,7 @@ source $DOCKER_FOLDER/docker_build_common.sh
2020# ===============================[global variables]===============================
2121declare -r ACCOUNT=${ACCOUNT:- opensource4you}
2222declare -r KAFKA_ACCOUNT=${KAFKA_ACCOUNT:- apache}
23- declare -r KAFKA_VERSION=${KAFKA_REVISION:- ${KAFKA_VERSION:- 4.1.1 } }
23+ declare -r KAFKA_VERSION=${KAFKA_REVISION:- ${KAFKA_VERSION:- 4.2.0 } }
2424declare -r DOCKERFILE=$DOCKER_FOLDER /worker.dockerfile
2525declare -r WORKER_PORT=${WORKER_PORT:- " $( getRandomPort) " }
2626declare -r CONTAINER_NAME=" worker-$WORKER_PORT "
@@ -50,7 +50,7 @@ function showHelp() {
5050 echo " ACCOUNT=opensource4you set the github account for astraea repo"
5151 echo " HEAP_OPTS=\" -Xmx2G -Xms2G\" set worker JVM memory"
5252 echo " KAFKA_REVISION=trunk set revision of kafka source code to build container"
53- echo " KAFKA_VERSION=4.1.1 set version of kafka distribution"
53+ echo " KAFKA_VERSION=4.2.0 set version of kafka distribution"
5454 echo " BUILD=false set true if you want to build image locally"
5555 echo " RUN=false set false if you want to build/pull image only"
5656 echo " WORKER_PLUGIN_PATH=/tmp/worker-plugins set plugin path to kafka worker"
@@ -114,7 +114,7 @@ function generateDockerfileByVersion() {
114114 local kafka_url=" https://archive.apache.org/dist/kafka/${KAFKA_VERSION} /kafka_2.13-${KAFKA_VERSION} .tgz"
115115 local version=$KAFKA_VERSION
116116 if [[ " $KAFKA_VERSION " == * " rc" * ]]; then
117- # # `4.1.1 -rc1` the rc release does not exist in archive repo
117+ # # `4.2.0 -rc1` the rc release does not exist in archive repo
118118 version=${KAFKA_VERSION% -* }
119119 kafka_url=" https://dist.apache.org/repos/dist/dev/kafka/${KAFKA_VERSION} /kafka_2.13-${version} .tgz"
120120 fi
0 commit comments