Files
web-hosts/chuckie.coppertone.tech/app/start.sh
2025-12-26 13:38:04 +01:00

21 lines
674 B
Bash
Executable File

#!/usr/bin/env bash
# set -e removed to allow retry loop
echo "Building containers (with retry for network stability)..."
for i in {1..5}; do
if podman compose -f podman-compose.dev.yml build; then
echo "Build successful on attempt $i"
break
else
if [ $i -eq 5 ]; then
echo "Build failed after 5 attempts. Please check your internet connection and DNS settings."
exit 1
fi
echo "Build failed. Retrying in 10 seconds... (Attempt $i/5)"
sleep 10
fi
done
podman compose -f podman-compose.dev.yml down -v --remove-orphans
podman compose -f podman-compose.dev.yml up -d --force-recreate
podman compose -f podman-compose.dev.yml logs -f