Migrate to K8S stack and fixes before big refactoring

This commit is contained in:
PB
2025-10-13 19:32:31 +02:00
parent ac19e766cf
commit 7f951cd42d
31 changed files with 163 additions and 470 deletions

View File

@@ -1,27 +1,4 @@
#!/usr/bin/env sh
set +e
waitForService()
{
wait-for-it.sh $1 -t 2 1>/dev/null 2>&1
status=$?
while [ $status != 0 ]
do
echo "[x] wating for $1..."
sleep 1
wait-for-it.sh $1 -t 2 1>/dev/null 2>&1
status=$?
done
}
update-resolv # provided by stack - better approach - single copy
update-ca-certificates
waitForService "api-registry:8501"
waitForService "api-logger:24224"
waitForService "db-postgres:5432"
register-service
# run migrations
migrate.sh