This commit is contained in:
Executable
+18
@@ -0,0 +1,18 @@
|
||||
#!/bin/sh
|
||||
set -eu
|
||||
cd "$(dirname "$0")/.."
|
||||
snapshot() {
|
||||
if [ -n "${HOOK_EVIDENCE:-}" ]; then
|
||||
printf '%s\n' "$1" >> "$HOOK_EVIDENCE"
|
||||
for container in $(./scripts/compose.sh ps -aq); do
|
||||
docker inspect --format '{{.Name}} status={{.State.Status}} started={{.State.StartedAt}}' "$container" >> "$HOOK_EVIDENCE"
|
||||
done
|
||||
fi
|
||||
}
|
||||
snapshot before
|
||||
./scripts/compose.sh stop collector_tls loki_tls tempo_tls prometheus_tls redis_tls
|
||||
./scripts/compose.sh restart postgres redis minio openbao collector prometheus loki tempo grafana
|
||||
python3 scripts/stand.py unseal
|
||||
./scripts/compose.sh start collector_tls loki_tls tempo_tls prometheus_tls redis_tls
|
||||
./scripts/compose.sh restart worker api gateway
|
||||
snapshot after
|
||||
Reference in New Issue
Block a user