Skip to content

Commit 35f518c

Browse files
committed
[DEV-4025] fix(ruby): wait until ch is ready
1 parent e8bd72a commit 35f518c

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

.github/workflows/reusable-ruby-publish-migrated-db.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -196,6 +196,12 @@ jobs:
196196
--ulimit nofile=262144:262144 \
197197
clickhouse/clickhouse-server
198198
docker cp ./config/clickhouse-config.xml clickhouse:/etc/clickhouse-server/config.xml
199+
timeout 20s bash -c '
200+
until curl -fsS http://localhost:8123/ping | grep -qx "Ok."; do
201+
sleep 1
202+
done
203+
'
204+
curl -fsS http://localhost:8123/ --data-binary "SELECT version()"
199205
200206
- name: Run clickhouse migrations
201207
run: |

0 commit comments

Comments
 (0)