Increase MySQL timeouts
This commit is contained in:
parent
c599aa5e87
commit
57b5f4b363
1 changed files with 2 additions and 2 deletions
|
@ -71,7 +71,7 @@ registry_old() {
|
|||
|
||||
|
||||
mysql_ping() {
|
||||
mysqladmin --connect-timeout=2 --wait=30 --host=127.0.0.1 \
|
||||
mysqladmin --connect-timeout=2 --wait=60 --host=127.0.0.1 \
|
||||
--user=root --password="${MYSQL_ROOT_PASSWORD}" ping
|
||||
}
|
||||
|
||||
|
@ -80,7 +80,7 @@ mysql_start() {
|
|||
docker run --net=host -d -e MYSQL_ROOT_PASSWORD -e MYSQL_USER \
|
||||
-e MYSQL_PASSWORD -e MYSQL_DATABASE "${MYSQL_IMAGE}"
|
||||
|
||||
if ! (sleep 10 && mysql_ping); then
|
||||
if ! (sleep 20 && mysql_ping); then
|
||||
echo "MySQL failed to respond in time."
|
||||
exit 1
|
||||
fi
|
||||
|
|
Reference in a new issue