Fix edge to handle nested metrics format from gateway forwarding
This commit is contained in:
23
ctrl/run.sh
Executable file
23
ctrl/run.sh
Executable file
@@ -0,0 +1,23 @@
|
||||
#!/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
|
||||
Reference in New Issue
Block a user