16 lines
426 B
Bash
16 lines
426 B
Bash
|
|
#!/bin/bash
|
||
|
|
# Healthcheck for ollama-piha (module 5 phase 4 local embed fallback).
|
||
|
|
|
||
|
|
if ! docker ps --filter "name=ollama-piha" --filter "status=running" | grep -q "ollama-piha"; then
|
||
|
|
echo "[FAIL] ollama-piha container is not running"
|
||
|
|
exit 1
|
||
|
|
fi
|
||
|
|
|
||
|
|
if ! curl -sf http://localhost:11434/api/tags > /dev/null; then
|
||
|
|
echo "[FAIL] ollama-piha API is not responding"
|
||
|
|
exit 1
|
||
|
|
fi
|
||
|
|
|
||
|
|
echo "[OK] ollama-piha is healthy"
|
||
|
|
exit 0
|