Increase MySQL timeouts

This commit is contained in:
Joseph Schorr 2018-07-24 13:36:33 -04:00
parent c599aa5e87
commit 57b5f4b363

View file

@ -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