Replaced wget with nc in entrypoint to support PostgreSQL (#6403)

Co-authored-by: Kirill Popov <kirill.popov@sbermarket.ru>
This commit is contained in:
Kirill Popov 2022-07-30 19:42:01 +03:00 committed by GitHub
parent c9cffa00db
commit b32b11982e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -11,7 +11,7 @@
# limitations under the License.
MYSQL="${MYSQL_HOST:-mysql}":"${MYSQL_PORT:-3306}"
while ! wget -O /dev/null -o /dev/null "${MYSQL}";
while ! nc -z -w 5 "${MYSQL}";
do echo "Trying to connect to ${MYSQL}"; sleep 5;
done
cd /openmetadata-*/