Jesús Pérez 09a97ac8f5
chore: update platform submodule to monorepo crates structure
Platform restructured into crates/, added AI service and detector,
       migrated control-center-ui to Leptos 0.8
2026-01-08 21:32:59 +00:00

25 lines
560 B
Bash

#!/bin/bash
# Health check script for Zot registry
set -e
# Check if Zot API is responding
if ! curl -f -s http://localhost:5000/v2/ > /dev/null; then
echo "ERROR: Zot API not responding"
exit 1
fi
# Check if search extension is available
if ! curl -f -s http://localhost:5000/v2/_catalog > /dev/null; then
echo "ERROR: Zot catalog not available"
exit 1
fi
# Check metrics endpoint if enabled
if curl -f -s http://localhost:5000/metrics > /dev/null 2>&1; then
echo "OK: Metrics available"
fi
echo "OK: All health checks passed"
exit 0