Run demos without Docker (#809)

This commit is contained in:
Adil Hafeez 2026-03-11 12:49:36 -07:00 committed by GitHub
parent 6610097659
commit b4313d93a4
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
35 changed files with 488 additions and 347 deletions

View file

@ -18,22 +18,24 @@ start_demo() {
echo ".env file created with OPENAI_API_KEY."
fi
# Step 3: Start Plano
# Step 3: Optionally start UI services (AnythingLLM, Jaeger)
# Jaeger must start before Plano so it can bind the OTEL port (4317)
if [ "$1" == "--with-ui" ]; then
echo "Starting UI services (AnythingLLM, Jaeger)..."
docker compose up -d
fi
# Step 4: Start Plano
echo "Starting Plano with config.yaml..."
planoai up config.yaml
# Step 4: Start developer services
echo "Starting Network Agent using Docker Compose..."
docker compose up -d # Run in detached mode
}
# Function to stop the demo
stop_demo() {
# Step 1: Stop Docker Compose services
echo "Stopping Network Agent using Docker Compose..."
docker compose down
# Stop Docker Compose services if running
docker compose down 2>/dev/null || true
# Step 2: Stop Plano
# Stop Plano
echo "Stopping Plano..."
planoai down
}
@ -42,6 +44,5 @@ stop_demo() {
if [ "$1" == "down" ]; then
stop_demo
else
# Default action is to bring the demo up
start_demo
start_demo "$1"
fi