observability: fix alloy ui component, busybox healthchecks for loki/alloy
- alloy 1.x renamed the server component to ui; the old block failed the initial load and the container crash-looped - grafana/loki is distroless and grafana/alloy lacks wget, so their healthchecks could never run; local images add a static busybox from alpine for that one command - deploy.sh builds all three local images if missing - tests: 3 new seams
This commit is contained in:
+10
-4
@@ -139,10 +139,16 @@ fi
|
||||
|
||||
if [ '${COMPOSE_UP[$TARGET]}' = '1' ]; then
|
||||
echo '[4/4] Restarting stack...'
|
||||
if ! podman image exists franksdank/caddy-porkbun:latest; then
|
||||
echo ' franksdank/caddy-porkbun image missing; building it (a few minutes)...'
|
||||
podman build -t franksdank/caddy-porkbun:latest -f dankclaw/caddy/Containerfile .
|
||||
fi
|
||||
# Locally built images: caddy + porkbun module, and loki/alloy + a static
|
||||
# busybox (their upstream images lack the wget the healthchecks need).
|
||||
for dir in caddy loki alloy; do
|
||||
img=franksdank/$dir
|
||||
[ "$dir" = "caddy" ] && img=franksdank/caddy-porkbun
|
||||
if ! podman image exists $img:latest; then
|
||||
echo " $img image missing; building it..."
|
||||
podman build -t $img:latest -f dankclaw/$dir/Containerfile .
|
||||
fi
|
||||
done
|
||||
podman-compose -f '${COMPOSE[$TARGET]}' up -d
|
||||
else
|
||||
echo '[4/4] Skipping compose restart (stack runs as bare containers on this host)'
|
||||
|
||||
Reference in New Issue
Block a user