Files
mtusi2026labs/scripts/persistence-evidence.sh
2026-10-30 12:32:42 +03:00

18 lines
618 B
Bash
Executable File

#!/bin/sh
set -eu
cd "$(dirname "$0")/.."
started() {
for service in $(docker compose config --services); do
id=$(docker compose ps -aq "$service")
if [ -n "$id" ]; then
printf '%-10s %s\n' "$service" "$(docker inspect --format '{{.State.StartedAt}} {{.State.Status}}' "$id")"
fi
done
}
echo "date: $(date -u +%FT%TZ) commit: $(git rev-parse --short HEAD)"
echo "== before: service StartedAt status"
started
make --no-print-directory test-persistence ACTION_SCRIPT=scripts/restart.sh BASE_URL="${1:-http://localhost:8080}"
echo "== after: service StartedAt status"
started