zkt26/z1/prepare-app.sh

35 lines
1018 B
Bash
Executable File

#!/bin/bash
# =============================================
# prepare-app.sh
# Prepares the Task Manager application:
# - Builds Docker images
# - Creates networks and volumes via docker compose
# =============================================
set -e
echo "============================================="
echo " Preparing Task Manager Application..."
echo "============================================="
echo ""
# Navigate to the script's directory
cd "$(dirname "$0")"
# Pull base images
echo "[1/2] Pulling base images..."
docker compose pull postgres redis adminer
echo " ✓ Base images pulled"
echo ""
# Build all custom Docker images and create networks/volumes
echo "[2/2] Building custom Docker images..."
docker compose build --no-cache
echo " ✓ Images built successfully"
echo ""
echo "============================================="
echo " ✓ Application prepared successfully!"
echo " Run ./start-app.sh to start the application"
echo "============================================="