fix run_demo.sh scripts

to ensure that otel is started earlier than plano
This commit is contained in:
Adil Hafeez 2026-03-11 12:13:49 -07:00
parent 2bb0826a51
commit eb35b40635
No known key found for this signature in database
GPG key ID: 9B18EF7691369645
12 changed files with 96 additions and 84 deletions

View file

@ -18,15 +18,16 @@ start_demo() {
echo ".env file created with OPENAI_API_KEY."
fi
# Step 3: Start Plano
echo "Starting Plano with config.yaml..."
planoai up config.yaml
# Step 4: Optionally start UI services (AnythingLLM, Jaeger)
# 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
}
# Function to stop the demo

View file

@ -18,19 +18,20 @@ start_demo() {
echo ".env file created with OPENAI_API_KEY."
fi
# Step 3: Start Plano
echo "Starting Plano with config.yaml..."
planoai up config.yaml
# Step 4: Start agents natively
echo "Starting agents..."
bash start_agents.sh &
# Step 5: Optionally start UI services (AnythingLLM)
# Step 3: Optionally start UI services (AnythingLLM)
# UI services must start before Plano to avoid OTEL port conflicts
if [ "$1" == "--with-ui" ]; then
echo "Starting UI services (AnythingLLM)..."
docker compose up -d
fi
# Step 4: Start Plano
echo "Starting Plano with config.yaml..."
planoai up config.yaml
# Step 5: Start agents natively
echo "Starting agents..."
bash start_agents.sh &
}
# Function to stop the demo

View file

@ -18,15 +18,16 @@ start_demo() {
echo ".env file created with OPENAI_API_KEY."
fi
# Step 3: Start Plano
echo "Starting Plano with config.yaml..."
planoai up config.yaml
# Step 4: Optionally start UI services (AnythingLLM, Jaeger)
# 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
}
# Function to stop the demo

View file

@ -18,19 +18,20 @@ start_demo() {
echo ".env file created with API keys."
fi
# Step 3: Start Plano
echo "Starting Plano with config.yaml..."
planoai up config.yaml
# Step 4: Start agents natively
echo "Starting agents..."
bash start_agents.sh &
# Step 5: Optionally start UI services (AnythingLLM, Jaeger)
# 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 5: Start agents natively
echo "Starting agents..."
bash start_agents.sh &
}
# Function to stop the demo

View file

@ -23,19 +23,20 @@ start_demo() {
echo ".env file created with API keys."
fi
# Step 3: Start Plano
echo "Starting Plano with config.yaml..."
planoai up config.yaml
# Step 4: Start agents natively
echo "Starting agents..."
bash start_agents.sh &
# Step 5: Optionally start UI services (Open WebUI, Jaeger)
# Step 3: Optionally start UI services (Open WebUI, Jaeger)
# Jaeger must start before Plano so it can bind the OTEL port (4317)
if [ "$1" == "--with-ui" ]; then
echo "Starting UI services (Open WebUI, Jaeger)..."
docker compose up -d
fi
# Step 4: Start Plano
echo "Starting Plano with config.yaml..."
planoai up config.yaml
# Step 5: Start agents natively
echo "Starting agents..."
bash start_agents.sh &
}
# Function to stop the demo

View file

@ -18,19 +18,20 @@ start_demo() {
echo ".env file created with OPENAI_API_KEY."
fi
# Step 3: Start Plano
echo "Starting Plano with config.yaml..."
planoai up config.yaml
# Step 4: Start agents natively
echo "Starting agents..."
bash start_agents.sh &
# Step 5: Optionally start UI services (AnythingLLM, Jaeger)
# 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 5: Start agents natively
echo "Starting agents..."
bash start_agents.sh &
}
# Function to stop the demo

View file

@ -18,19 +18,20 @@ start_demo() {
echo ".env file created with OPENAI_API_KEY."
fi
# Step 3: Start Plano
echo "Starting Plano with config.yaml..."
planoai up config.yaml
# Step 4: Start agents natively
echo "Starting agents..."
bash start_agents.sh &
# Step 5: Optionally start UI services (AnythingLLM, Jaeger)
# 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 5: Start agents natively
echo "Starting agents..."
bash start_agents.sh &
}
# Function to stop the demo

View file

@ -18,15 +18,16 @@ start_demo() {
echo ".env file created with OPENAI_API_KEY."
fi
# Step 3: Start Plano
echo "Starting Plano with config.yaml..."
planoai up config.yaml
# Step 4: Optionally start UI services (AnythingLLM, Jaeger)
# 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
}
# Function to stop the demo

View file

@ -72,19 +72,20 @@ start_demo() {
exit 1
fi
# Step 4: Start Plano
echo "Starting Plano with config.yaml..."
planoai up config.yaml
# Step 5: Start agents natively
echo "Starting agents..."
bash start_agents.sh &
# Step 6: Optionally start UI services (AnythingLLM, Jaeger, etc.)
# Step 4: Optionally start UI services (AnythingLLM, Jaeger, etc.)
# Jaeger must start before Plano so it can bind the OTEL port (4317)
if [ "$1" == "--with-ui" ] || [ "$2" == "--with-ui" ]; then
echo "Starting UI services with $COMPOSE_FILE..."
docker compose -f "$COMPOSE_FILE" up -d
fi
# Step 5: Start Plano
echo "Starting Plano with config.yaml..."
planoai up config.yaml
# Step 6: Start agents natively
echo "Starting agents..."
bash start_agents.sh &
}
# Function to stop the demo

View file

@ -24,16 +24,17 @@ start_demo() {
echo ".env file created with API keys."
fi
# Step 3: Start Plano
echo "Starting Plano with arch_config_with_aliases.yaml..."
planoai up arch_config_with_aliases.yaml
# Step 4: Optionally start UI services (AnythingLLM, Jaeger)
# 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 arch_config_with_aliases.yaml..."
planoai up arch_config_with_aliases.yaml
echo ""
echo "Plano started successfully."
echo "Please run the following CURL command to test model alias routing. Additional instructions are in the README.md file."

View file

@ -18,15 +18,16 @@ start_demo() {
echo ".env file created with OPENAI_API_KEY."
fi
# Step 3: Start Plano
echo "Starting Plano with config.yaml..."
planoai up config.yaml
# Step 4: Optionally start UI services (AnythingLLM, Jaeger)
# 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
}
# Function to stop the demo

View file

@ -24,15 +24,16 @@ start_demo() {
echo ".env file created with API keys."
fi
# Step 3: Start Plano
echo "Starting Plano with config.yaml..."
planoai up config.yaml
# Step 4: Optionally start UI services (AnythingLLM, Jaeger)
# 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
}
# Function to stop the demo