File tree Expand file tree Collapse file tree 5 files changed +5
-5
lines changed Expand file tree Collapse file tree 5 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -22,4 +22,4 @@ RUN chmod +x /usr/local/bin/*
2222COPY --from=0 /zu/build/libs/zu.jar /opt/libs/
2323
2424RUN apt-get -q update && \
25- apt-get install --no-install-recommends -y curl dnsutils procps
25+ apt-get install --no-install-recommends -y curl dnsutils procps socat
Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ set -ex
1313
1414source /conf/env.sh
1515
16- OK=$( echo ruok | nc 127.0.0.1 $CLIENT_PORT )
16+ OK=$( echo ruok | socat stdio tcp:localhost: $CLIENT_PORT )
1717
1818# Check to see if zookeeper service answers
1919if [[ " $OK " == " imok" ]]; then
Original file line number Diff line number Diff line change @@ -13,4 +13,4 @@ set -ex
1313
1414source /conf/env.sh
1515
16- echo mntr | nc localhost $CLIENT_PORT >& 1
16+ echo mntr | socat stdio tcp:localhost: $CLIENT_PORT >& 1
Original file line number Diff line number Diff line change @@ -28,7 +28,7 @@ OFFSET=${OFFSET:-1}
2828CLIENT_HOST=${SEED_NODE:- $CLIENT_HOST }
2929
3030
31- OK=$( echo ruok | nc 127.0.0.1 $CLIENT_PORT )
31+ OK=$( echo ruok | socat stdio tcp:localhost: $CLIENT_PORT )
3232
3333# Check to see if zookeeper service answers
3434if [[ " $OK " == " imok" ]]; then
Original file line number Diff line number Diff line change @@ -27,7 +27,7 @@ OFFSET=${OFFSET:-1}
2727
2828# Wait for client connections to drain. Kubernetes will wait until the confiugred
2929# "terminationGracePeriodSeconds" before focibly killing the container
30- CONN_COUNT=` echo cons | nc localhost 2181 | grep -v " ^$" | grep -v " /127.0.0.1:" | wc -l`
30+ CONN_COUNT=` echo cons | socat stdio tcp:localhost: $CLIENT_PORT | grep -v " ^$" | grep -v " /127.0.0.1:" | wc -l`
3131for (( i = 0 ; i < 6 ; i++ )) ; do
3232 if [[ " $CONN_COUNT " -gt 0 ]]; then
3333 echo " $CONN_COUNT non-local connections still connected."
You can’t perform that action at this time.
0 commit comments