zkt25/z2/prepare-app.sh
2025-04-09 23:29:29 +02:00

13 lines
380 B
Bash

#!/bin/bash
echo "Building Docker image for backend"
docker build -t battleship-backend ./backend
echo "Building Docker image for frontend"
docker build -t battleship-frontend ./frontend
echo "Creating namespace battleship-app"
kubectl apply -f namespace.yaml
echo "Creating StatefulSet for MySQL"
kubectl apply -f statefulset.yaml -n battleship-app
echo "Docker images built."