24 lines
499 B
Bash
Executable File
24 lines
499 B
Bash
Executable File
#!/bin/bash
|
|
# Run sysmonstm full stack locally with edge forwarding
|
|
# Usage: ./ctrl/run.sh [--remote]
|
|
#
|
|
# Examples:
|
|
# ./ctrl/run.sh # Build locally (default)
|
|
# ./ctrl/run.sh --remote # Use registry images
|
|
|
|
cd "$(dirname "$0")/.."
|
|
|
|
# Load env from ctrl/.env
|
|
set -a
|
|
source ctrl/.env
|
|
set +a
|
|
|
|
if [ "$1" = "--remote" ]; then
|
|
echo "Using remote images from registry"
|
|
docker compose pull
|
|
docker compose up "${@:2}"
|
|
else
|
|
echo "Building locally..."
|
|
docker compose up --build "$@"
|
|
fi
|