Files

25 lines
816 B
Bash
Raw Permalink Normal View History

2025-04-20 11:29:53 -07:00
#!/bin/bash
# Change directory to root Server directory for correct Docker Context
cd "$(dirname "$0")"
2026-04-19 14:12:00 +02:00
cd ../../
2025-04-20 11:29:53 -07:00
# Define an array of services and their Dockerfiles
declare -A services=(
2026-04-19 14:12:00 +02:00
["bluewaveuptime/uptime_client"]="./docker/coolify/client.Dockerfile"
["bluewaveuptime/uptime_database_mongo"]="./docker/coolify/mongoDB.Dockerfile"
["bluewaveuptime/uptime_redis"]="./docker/coolify/redis.Dockerfile"
["bluewaveuptime/uptime_server"]="./docker/coolify/server.Dockerfile"
2025-04-20 11:29:53 -07:00
)
# Loop through each service and build the corresponding image
for service in "${!services[@]}"; do
docker build -f "${services[$service]}" -t "$service" .
# Check if the build succeeded
if [ $? -ne 0 ]; then
echo "Error building $service image. Exiting..."
exit 1
fi
done
echo "All images built successfully"