File tree Expand file tree Collapse file tree 2 files changed +2
-1
lines changed Expand file tree Collapse file tree 2 files changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -11,6 +11,7 @@ RUN chmod +x /workspace/script/wait-for-clickhouse.sh
11
11
# Use distroless as minimal base image to package the manager binary
12
12
# Refer to https://github.com/GoogleContainerTools/distroless for more details
13
13
FROM golang:alpine
14
+ RUN apk add --no-cache netcat-openbsd
14
15
WORKDIR /
15
16
COPY --from=builder /workspace/migration .
16
17
COPY --from=builder /workspace/sql /sql
Original file line number Diff line number Diff line change @@ -7,7 +7,7 @@ MAX_RETRIES=60
7
7
8
8
retry_count=0
9
9
while [ $retry_count -lt $MAX_RETRIES ]; do
10
- if clickhouse-client --host $CLICKHOUSE_HOST --port $CLICKHOUSE_PORT --query " SELECT 1 " ; then
10
+ if nc -z -v -w5 $CLICKHOUSE_HOST $CLICKHOUSE_PORT ; then
11
11
echo " ClickHouse is ready!"
12
12
exit 0
13
13
else
You can’t perform that action at this time.
0 commit comments