Skip to content

Commit

Permalink
healthcheck.sh add --no-connect option
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
grooverdan committed Sep 17, 2024
1 parent fe4d1ee commit 90a7e44
Show file tree
Hide file tree
Showing 11 changed files with 55 additions and 0 deletions.
5 changes: 5 additions & 0 deletions 10.11-ubi/healthcheck.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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#--}
;;
Expand Down
5 changes: 5 additions & 0 deletions 10.11/healthcheck.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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#--}
;;
Expand Down
5 changes: 5 additions & 0 deletions 10.5/healthcheck.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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#--}
;;
Expand Down
5 changes: 5 additions & 0 deletions 10.6-ubi/healthcheck.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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#--}
;;
Expand Down
5 changes: 5 additions & 0 deletions 10.6/healthcheck.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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#--}
;;
Expand Down
5 changes: 5 additions & 0 deletions 11.2/healthcheck.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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#--}
;;
Expand Down
5 changes: 5 additions & 0 deletions 11.4-ubi/healthcheck.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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#--}
;;
Expand Down
5 changes: 5 additions & 0 deletions 11.4/healthcheck.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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#--}
;;
Expand Down
5 changes: 5 additions & 0 deletions healthcheck.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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#--}
;;
Expand Down
5 changes: 5 additions & 0 deletions main-ubi/healthcheck.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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#--}
;;
Expand Down
5 changes: 5 additions & 0 deletions main/healthcheck.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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#--}
;;
Expand Down

0 comments on commit 90a7e44

Please sign in to comment.