update installation
This commit is contained in:
@@ -57,7 +57,7 @@ printf 'Updating the local Gitea image and deployment stack...\n'
|
||||
docker compose --env-file .env pull gitea nginx
|
||||
"${DEPLOY_ROOT}/manage.sh" start
|
||||
|
||||
container_id="$(docker compose -f compose.yaml -f compose.tls.yaml ps -q broker)"
|
||||
container_id="$("${DEPLOY_ROOT}/manage.sh" broker-container-id)"
|
||||
[[ -n "$container_id" ]] ||
|
||||
fail "Docker Compose did not return the local broker container"
|
||||
|
||||
@@ -71,13 +71,13 @@ for ((attempt = 1; attempt <= 75; attempt++)); do
|
||||
case "$status" in
|
||||
healthy)
|
||||
printf ' healthy.\n'
|
||||
docker compose -f compose.yaml -f compose.tls.yaml ps
|
||||
"${DEPLOY_ROOT}/manage.sh" status
|
||||
printf 'Local deployment updated successfully.\n'
|
||||
exit 0
|
||||
;;
|
||||
exited | dead | unhealthy)
|
||||
printf ' %s.\n' "$status"
|
||||
docker compose -f compose.yaml -f compose.tls.yaml logs --tail=100 broker
|
||||
"${DEPLOY_ROOT}/manage.sh" broker-logs
|
||||
fail "the local broker failed its health check"
|
||||
;;
|
||||
esac
|
||||
@@ -86,5 +86,5 @@ for ((attempt = 1; attempt <= 75; attempt++)); do
|
||||
done
|
||||
|
||||
printf ' timed out.\n'
|
||||
docker compose -f compose.yaml -f compose.tls.yaml logs --tail=100 broker
|
||||
"${DEPLOY_ROOT}/manage.sh" broker-logs
|
||||
fail "the local broker did not become healthy within 150 seconds"
|
||||
|
||||
Reference in New Issue
Block a user