https://github.com/opencv/cvat
Raw File
Tip revision: c5d8a16c880017993557d86f203630f6eadfcd3c authored by Yeek Sheng on 19 April 2024, 12:10:45 UTC
[GSoC2024] Fix import of outside track shapes in Datumaro-based formats (#7669)
Tip revision: c5d8a16
wait_for_deps.sh
#!/bin/sh

# Copyright (C) 2023 CVAT.ai Corporation
#
# SPDX-License-Identifier: MIT

# This is a wrapper script for running backend services. It waits for services
# the backend depends on to start before executing the backend itself.

# Ideally, the check that all DB migrations have completed should also be here,
# but it's too resource-intensive to execute for every worker we might be running
# in a container. Instead, it's in backend_entrypoint.sh.

~/wait-for-it.sh "${CVAT_POSTGRES_HOST}:${CVAT_POSTGRES_PORT:-5432}" -t 0
~/wait-for-it.sh "${CVAT_REDIS_INMEM_HOST}:${CVAT_REDIS_INMEM_PORT}" -t 0
~/wait-for-it.sh "${CVAT_REDIS_ONDISK_HOST}:${CVAT_REDIS_ONDISK_PORT}" -t 0

exec "$@"
back to top