mirror of
https://github.com/MariaDB/mariadb-docker.git
synced 2025-04-19 06:02:18 +03:00
healthcheck.sh add --no-connect option
There is an implicit --connect option in healthcheck so that a normal use can be sure MariaDB is running on a tcp socket. There is a case in /docker-entrypoint-initdb.d where its desirable to perform healthchecks for components without a --connect. In this case, use --no-connect in the healthcheck to avoid an implicit --connect test.
This commit is contained in:
parent
70d5dbb805
commit
4540d62515
@ -361,6 +361,11 @@ while [ $# -gt 0 ]; do
|
||||
fi
|
||||
nodefaults=
|
||||
;;
|
||||
--no-connect)
|
||||
# used for /docker-entrypoint-initdb.d scripts
|
||||
# where you definately don't want a connection test
|
||||
connect_s=0
|
||||
;;
|
||||
--*)
|
||||
test=${1#--}
|
||||
;;
|
||||
|
@ -361,6 +361,11 @@ while [ $# -gt 0 ]; do
|
||||
fi
|
||||
nodefaults=
|
||||
;;
|
||||
--no-connect)
|
||||
# used for /docker-entrypoint-initdb.d scripts
|
||||
# where you definately don't want a connection test
|
||||
connect_s=0
|
||||
;;
|
||||
--*)
|
||||
test=${1#--}
|
||||
;;
|
||||
|
@ -361,6 +361,11 @@ while [ $# -gt 0 ]; do
|
||||
fi
|
||||
nodefaults=
|
||||
;;
|
||||
--no-connect)
|
||||
# used for /docker-entrypoint-initdb.d scripts
|
||||
# where you definately don't want a connection test
|
||||
connect_s=0
|
||||
;;
|
||||
--*)
|
||||
test=${1#--}
|
||||
;;
|
||||
|
@ -361,6 +361,11 @@ while [ $# -gt 0 ]; do
|
||||
fi
|
||||
nodefaults=
|
||||
;;
|
||||
--no-connect)
|
||||
# used for /docker-entrypoint-initdb.d scripts
|
||||
# where you definately don't want a connection test
|
||||
connect_s=0
|
||||
;;
|
||||
--*)
|
||||
test=${1#--}
|
||||
;;
|
||||
|
@ -361,6 +361,11 @@ while [ $# -gt 0 ]; do
|
||||
fi
|
||||
nodefaults=
|
||||
;;
|
||||
--no-connect)
|
||||
# used for /docker-entrypoint-initdb.d scripts
|
||||
# where you definately don't want a connection test
|
||||
connect_s=0
|
||||
;;
|
||||
--*)
|
||||
test=${1#--}
|
||||
;;
|
||||
|
@ -361,6 +361,11 @@ while [ $# -gt 0 ]; do
|
||||
fi
|
||||
nodefaults=
|
||||
;;
|
||||
--no-connect)
|
||||
# used for /docker-entrypoint-initdb.d scripts
|
||||
# where you definately don't want a connection test
|
||||
connect_s=0
|
||||
;;
|
||||
--*)
|
||||
test=${1#--}
|
||||
;;
|
||||
|
@ -363,6 +363,11 @@ while [ $# -gt 0 ]; do
|
||||
fi
|
||||
nodefaults=
|
||||
;;
|
||||
--no-connect)
|
||||
# used for /docker-entrypoint-initdb.d scripts
|
||||
# where you definately don't want a connection test
|
||||
connect_s=0
|
||||
;;
|
||||
--*)
|
||||
test=${1#--}
|
||||
;;
|
||||
|
@ -363,6 +363,11 @@ while [ $# -gt 0 ]; do
|
||||
fi
|
||||
nodefaults=
|
||||
;;
|
||||
--no-connect)
|
||||
# used for /docker-entrypoint-initdb.d scripts
|
||||
# where you definately don't want a connection test
|
||||
connect_s=0
|
||||
;;
|
||||
--*)
|
||||
test=${1#--}
|
||||
;;
|
||||
|
@ -363,6 +363,11 @@ while [ $# -gt 0 ]; do
|
||||
fi
|
||||
nodefaults=
|
||||
;;
|
||||
--no-connect)
|
||||
# used for /docker-entrypoint-initdb.d scripts
|
||||
# where you definately don't want a connection test
|
||||
connect_s=0
|
||||
;;
|
||||
--*)
|
||||
test=${1#--}
|
||||
;;
|
||||
|
@ -363,6 +363,11 @@ while [ $# -gt 0 ]; do
|
||||
fi
|
||||
nodefaults=
|
||||
;;
|
||||
--no-connect)
|
||||
# used for /docker-entrypoint-initdb.d scripts
|
||||
# where you definately don't want a connection test
|
||||
connect_s=0
|
||||
;;
|
||||
--*)
|
||||
test=${1#--}
|
||||
;;
|
||||
|
@ -363,6 +363,11 @@ while [ $# -gt 0 ]; do
|
||||
fi
|
||||
nodefaults=
|
||||
;;
|
||||
--no-connect)
|
||||
# used for /docker-entrypoint-initdb.d scripts
|
||||
# where you definately don't want a connection test
|
||||
connect_s=0
|
||||
;;
|
||||
--*)
|
||||
test=${1#--}
|
||||
;;
|
||||
|
Loading…
x
Reference in New Issue
Block a user