Skip to content

Commit

Permalink
build: update version of kafka and zookeeper to 7.6.0 in create comma…
Browse files Browse the repository at this point in the history
…nd script
  • Loading branch information
Wasutan Kitijerapat committed Feb 18, 2024
1 parent fa93489 commit b5d315c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions examples/create-kafka-commands.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,15 +9,15 @@ TARGET=$1
mkdir -p $TARGET

# create Kafka scripts
SCRIPTS=$(docker run --rm -it --entrypoint /bin/bash confluentinc/cp-kafka:5.4.0 -c "compgen -c | grep -E '(zook*|kafka*)'")
SCRIPTS=$(docker run --rm -it --entrypoint /bin/bash confluentinc/cp-kafka:7.6.0 -c "compgen -c | grep -E '(zook*|kafka*)'")
for SCRIPT in $SCRIPTS; do
SCRIPT=$(echo $SCRIPT | tr -d '\r')
FN=$TARGET/$(basename $SCRIPT)
echo creating $FN
cat <<-EOF > $FN
#!/bin/bash
CMD="$SCRIPT \$@"
docker run --net=host --rm -it --entrypoint /bin/bash confluentinc/cp-kafka:5.4.0 -c "\$CMD"
docker run --net=host --rm -it --entrypoint /bin/bash confluentinc/cp-kafka:7.6.0 -c "\$CMD"
EOF
chmod +x $FN
done
Expand All @@ -27,6 +27,6 @@ echo creating $TARGET/zkCli.sh
cat <<-EOF > $TARGET/zkCli.sh
#!/bin/bash
CMD="bin/zkCli.sh \$@"
docker run --net=host --rm -it zookeeper:3.4.9 bash -c "\$CMD"
docker run --net=host --rm -it confluentinc/cp-zookeeper:7.6.0 bash -c "\$CMD"
EOF
chmod +x $TARGET/zkCli.sh

0 comments on commit b5d315c

Please sign in to comment.