mirror of
https://github.com/immich-app/yucca.git
synced 2026-09-30 13:33:00 +08:00
28 lines
596 B
Bash
Executable File
28 lines
596 B
Bash
Executable File
#!/usr/bin/env bash
|
|
#MISE description="Wait for development environment to be ready"
|
|
set -e
|
|
source "$(dirname "$0")/../../restic-api/env"
|
|
source "$(dirname "$0")/../../yucca-api/env"
|
|
|
|
echo Ensure dev environment is running before invoking tests.
|
|
|
|
while ! nc -z localhost "8092" 2>/dev/null; do
|
|
sleep 0.1
|
|
done
|
|
|
|
while ! nc -z localhost "$RESTIC_API_PORT" 2>/dev/null; do
|
|
sleep 0.1
|
|
done
|
|
|
|
while ! nc -z localhost "$YUCCA_API_PORT" 2>/dev/null; do
|
|
sleep 0.1
|
|
done
|
|
|
|
while ! nc -z localhost "22676" 2>/dev/null; do
|
|
sleep 0.1
|
|
done
|
|
|
|
while ! nc -z localhost "36033" 2>/dev/null; do
|
|
sleep 0.1
|
|
done
|