ci: wait for mysql tcp readiness
This commit is contained in:
@@ -129,6 +129,7 @@ pipeline {
|
||||
mysql_ready=0
|
||||
for attempt in $(seq 1 60); do
|
||||
if $DOCKER_CMD exec "$SMOKE_MYSQL" mysqladmin ping \
|
||||
--host=127.0.0.1 --protocol=tcp \
|
||||
--user=jizhi --password=jizhi-smoke-password --silent; then
|
||||
mysql_ready=1
|
||||
break
|
||||
@@ -139,6 +140,7 @@ pipeline {
|
||||
$DOCKER_CMD logs "$SMOKE_MYSQL" >&2
|
||||
exit 1
|
||||
fi
|
||||
sleep 2
|
||||
|
||||
host_port=$((18080 + BUILD_NUMBER % 1000))
|
||||
$DOCKER_CMD run --detach \
|
||||
|
||||
Reference in New Issue
Block a user