zkt26/z2/prepare-app.sh

20 lines
1016 B
Bash
Executable File
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

#!/bin/bash
# Prepare the app: create the storage directory and build the Docker images
set -e
echo "╔══════════════════════════════════════════╗"
echo "║ Vigimétéo Prepare App ║"
echo "╚══════════════════════════════════════════╝"
echo "Preparing app..."
# 1 - Create the directory used by the PersistentVolume
mkdir -p ~/vigimeteo-db-data
# 2 - Build Docker images
docker build -t vigimeteo-backend:latest ./Back-end
docker build -t vigimeteo-frontend:latest ./Front-end
echo ""
echo "════════════════════════════════════════════"
echo " Preparation complete! Run ./start-app.sh"
echo "════════════════════════════════════════════"