mirror of
https://github.com/katanemo/plano.git
synced 2026-05-11 00:32:42 +02:00
fix run_demo.sh scripts
to ensure that otel is started earlier than plano
This commit is contained in:
parent
2bb0826a51
commit
eb35b40635
12 changed files with 96 additions and 84 deletions
|
|
@ -18,15 +18,16 @@ start_demo() {
|
||||||
echo ".env file created with OPENAI_API_KEY."
|
echo ".env file created with OPENAI_API_KEY."
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Step 3: Start Plano
|
# Step 3: Optionally start UI services (AnythingLLM, Jaeger)
|
||||||
echo "Starting Plano with config.yaml..."
|
# Jaeger must start before Plano so it can bind the OTEL port (4317)
|
||||||
planoai up config.yaml
|
|
||||||
|
|
||||||
# Step 4: Optionally start UI services (AnythingLLM, Jaeger)
|
|
||||||
if [ "$1" == "--with-ui" ]; then
|
if [ "$1" == "--with-ui" ]; then
|
||||||
echo "Starting UI services (AnythingLLM, Jaeger)..."
|
echo "Starting UI services (AnythingLLM, Jaeger)..."
|
||||||
docker compose up -d
|
docker compose up -d
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# Step 4: Start Plano
|
||||||
|
echo "Starting Plano with config.yaml..."
|
||||||
|
planoai up config.yaml
|
||||||
}
|
}
|
||||||
|
|
||||||
# Function to stop the demo
|
# Function to stop the demo
|
||||||
|
|
|
||||||
|
|
@ -18,19 +18,20 @@ start_demo() {
|
||||||
echo ".env file created with OPENAI_API_KEY."
|
echo ".env file created with OPENAI_API_KEY."
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Step 3: Start Plano
|
# Step 3: Optionally start UI services (AnythingLLM)
|
||||||
echo "Starting Plano with config.yaml..."
|
# UI services must start before Plano to avoid OTEL port conflicts
|
||||||
planoai up config.yaml
|
|
||||||
|
|
||||||
# Step 4: Start agents natively
|
|
||||||
echo "Starting agents..."
|
|
||||||
bash start_agents.sh &
|
|
||||||
|
|
||||||
# Step 5: Optionally start UI services (AnythingLLM)
|
|
||||||
if [ "$1" == "--with-ui" ]; then
|
if [ "$1" == "--with-ui" ]; then
|
||||||
echo "Starting UI services (AnythingLLM)..."
|
echo "Starting UI services (AnythingLLM)..."
|
||||||
docker compose up -d
|
docker compose up -d
|
||||||
fi
|
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
|
# Function to stop the demo
|
||||||
|
|
|
||||||
|
|
@ -18,15 +18,16 @@ start_demo() {
|
||||||
echo ".env file created with OPENAI_API_KEY."
|
echo ".env file created with OPENAI_API_KEY."
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Step 3: Start Plano
|
# Step 3: Optionally start UI services (AnythingLLM, Jaeger)
|
||||||
echo "Starting Plano with config.yaml..."
|
# Jaeger must start before Plano so it can bind the OTEL port (4317)
|
||||||
planoai up config.yaml
|
|
||||||
|
|
||||||
# Step 4: Optionally start UI services (AnythingLLM, Jaeger)
|
|
||||||
if [ "$1" == "--with-ui" ]; then
|
if [ "$1" == "--with-ui" ]; then
|
||||||
echo "Starting UI services (AnythingLLM, Jaeger)..."
|
echo "Starting UI services (AnythingLLM, Jaeger)..."
|
||||||
docker compose up -d
|
docker compose up -d
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# Step 4: Start Plano
|
||||||
|
echo "Starting Plano with config.yaml..."
|
||||||
|
planoai up config.yaml
|
||||||
}
|
}
|
||||||
|
|
||||||
# Function to stop the demo
|
# Function to stop the demo
|
||||||
|
|
|
||||||
|
|
@ -18,19 +18,20 @@ start_demo() {
|
||||||
echo ".env file created with API keys."
|
echo ".env file created with API keys."
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Step 3: Start Plano
|
# Step 3: Optionally start UI services (AnythingLLM, Jaeger)
|
||||||
echo "Starting Plano with config.yaml..."
|
# Jaeger must start before Plano so it can bind the OTEL port (4317)
|
||||||
planoai up config.yaml
|
|
||||||
|
|
||||||
# Step 4: Start agents natively
|
|
||||||
echo "Starting agents..."
|
|
||||||
bash start_agents.sh &
|
|
||||||
|
|
||||||
# Step 5: Optionally start UI services (AnythingLLM, Jaeger)
|
|
||||||
if [ "$1" == "--with-ui" ]; then
|
if [ "$1" == "--with-ui" ]; then
|
||||||
echo "Starting UI services (AnythingLLM, Jaeger)..."
|
echo "Starting UI services (AnythingLLM, Jaeger)..."
|
||||||
docker compose up -d
|
docker compose up -d
|
||||||
fi
|
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
|
# Function to stop the demo
|
||||||
|
|
|
||||||
|
|
@ -23,19 +23,20 @@ start_demo() {
|
||||||
echo ".env file created with API keys."
|
echo ".env file created with API keys."
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Step 3: Start Plano
|
# Step 3: Optionally start UI services (Open WebUI, Jaeger)
|
||||||
echo "Starting Plano with config.yaml..."
|
# Jaeger must start before Plano so it can bind the OTEL port (4317)
|
||||||
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)
|
|
||||||
if [ "$1" == "--with-ui" ]; then
|
if [ "$1" == "--with-ui" ]; then
|
||||||
echo "Starting UI services (Open WebUI, Jaeger)..."
|
echo "Starting UI services (Open WebUI, Jaeger)..."
|
||||||
docker compose up -d
|
docker compose up -d
|
||||||
fi
|
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
|
# Function to stop the demo
|
||||||
|
|
|
||||||
|
|
@ -18,19 +18,20 @@ start_demo() {
|
||||||
echo ".env file created with OPENAI_API_KEY."
|
echo ".env file created with OPENAI_API_KEY."
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Step 3: Start Plano
|
# Step 3: Optionally start UI services (AnythingLLM, Jaeger)
|
||||||
echo "Starting Plano with config.yaml..."
|
# Jaeger must start before Plano so it can bind the OTEL port (4317)
|
||||||
planoai up config.yaml
|
|
||||||
|
|
||||||
# Step 4: Start agents natively
|
|
||||||
echo "Starting agents..."
|
|
||||||
bash start_agents.sh &
|
|
||||||
|
|
||||||
# Step 5: Optionally start UI services (AnythingLLM, Jaeger)
|
|
||||||
if [ "$1" == "--with-ui" ]; then
|
if [ "$1" == "--with-ui" ]; then
|
||||||
echo "Starting UI services (AnythingLLM, Jaeger)..."
|
echo "Starting UI services (AnythingLLM, Jaeger)..."
|
||||||
docker compose up -d
|
docker compose up -d
|
||||||
fi
|
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
|
# Function to stop the demo
|
||||||
|
|
|
||||||
|
|
@ -18,19 +18,20 @@ start_demo() {
|
||||||
echo ".env file created with OPENAI_API_KEY."
|
echo ".env file created with OPENAI_API_KEY."
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Step 3: Start Plano
|
# Step 3: Optionally start UI services (AnythingLLM, Jaeger)
|
||||||
echo "Starting Plano with config.yaml..."
|
# Jaeger must start before Plano so it can bind the OTEL port (4317)
|
||||||
planoai up config.yaml
|
|
||||||
|
|
||||||
# Step 4: Start agents natively
|
|
||||||
echo "Starting agents..."
|
|
||||||
bash start_agents.sh &
|
|
||||||
|
|
||||||
# Step 5: Optionally start UI services (AnythingLLM, Jaeger)
|
|
||||||
if [ "$1" == "--with-ui" ]; then
|
if [ "$1" == "--with-ui" ]; then
|
||||||
echo "Starting UI services (AnythingLLM, Jaeger)..."
|
echo "Starting UI services (AnythingLLM, Jaeger)..."
|
||||||
docker compose up -d
|
docker compose up -d
|
||||||
fi
|
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
|
# Function to stop the demo
|
||||||
|
|
|
||||||
|
|
@ -18,15 +18,16 @@ start_demo() {
|
||||||
echo ".env file created with OPENAI_API_KEY."
|
echo ".env file created with OPENAI_API_KEY."
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Step 3: Start Plano
|
# Step 3: Optionally start UI services (AnythingLLM, Jaeger)
|
||||||
echo "Starting Plano with config.yaml..."
|
# Jaeger must start before Plano so it can bind the OTEL port (4317)
|
||||||
planoai up config.yaml
|
|
||||||
|
|
||||||
# Step 4: Optionally start UI services (AnythingLLM, Jaeger)
|
|
||||||
if [ "$1" == "--with-ui" ]; then
|
if [ "$1" == "--with-ui" ]; then
|
||||||
echo "Starting UI services (AnythingLLM, Jaeger)..."
|
echo "Starting UI services (AnythingLLM, Jaeger)..."
|
||||||
docker compose up -d
|
docker compose up -d
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# Step 4: Start Plano
|
||||||
|
echo "Starting Plano with config.yaml..."
|
||||||
|
planoai up config.yaml
|
||||||
}
|
}
|
||||||
|
|
||||||
# Function to stop the demo
|
# Function to stop the demo
|
||||||
|
|
|
||||||
|
|
@ -72,19 +72,20 @@ start_demo() {
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Step 4: Start Plano
|
# Step 4: Optionally start UI services (AnythingLLM, Jaeger, etc.)
|
||||||
echo "Starting Plano with config.yaml..."
|
# Jaeger must start before Plano so it can bind the OTEL port (4317)
|
||||||
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.)
|
|
||||||
if [ "$1" == "--with-ui" ] || [ "$2" == "--with-ui" ]; then
|
if [ "$1" == "--with-ui" ] || [ "$2" == "--with-ui" ]; then
|
||||||
echo "Starting UI services with $COMPOSE_FILE..."
|
echo "Starting UI services with $COMPOSE_FILE..."
|
||||||
docker compose -f "$COMPOSE_FILE" up -d
|
docker compose -f "$COMPOSE_FILE" up -d
|
||||||
fi
|
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
|
# Function to stop the demo
|
||||||
|
|
|
||||||
|
|
@ -24,16 +24,17 @@ start_demo() {
|
||||||
echo ".env file created with API keys."
|
echo ".env file created with API keys."
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Step 3: Start Plano
|
# Step 3: Optionally start UI services (AnythingLLM, Jaeger)
|
||||||
echo "Starting Plano with arch_config_with_aliases.yaml..."
|
# Jaeger must start before Plano so it can bind the OTEL port (4317)
|
||||||
planoai up arch_config_with_aliases.yaml
|
|
||||||
|
|
||||||
# Step 4: Optionally start UI services (AnythingLLM, Jaeger)
|
|
||||||
if [ "$1" == "--with-ui" ]; then
|
if [ "$1" == "--with-ui" ]; then
|
||||||
echo "Starting UI services (AnythingLLM, Jaeger)..."
|
echo "Starting UI services (AnythingLLM, Jaeger)..."
|
||||||
docker compose up -d
|
docker compose up -d
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# Step 4: Start Plano
|
||||||
|
echo "Starting Plano with arch_config_with_aliases.yaml..."
|
||||||
|
planoai up arch_config_with_aliases.yaml
|
||||||
|
|
||||||
echo ""
|
echo ""
|
||||||
echo "Plano started successfully."
|
echo "Plano started successfully."
|
||||||
echo "Please run the following CURL command to test model alias routing. Additional instructions are in the README.md file."
|
echo "Please run the following CURL command to test model alias routing. Additional instructions are in the README.md file."
|
||||||
|
|
|
||||||
|
|
@ -18,15 +18,16 @@ start_demo() {
|
||||||
echo ".env file created with OPENAI_API_KEY."
|
echo ".env file created with OPENAI_API_KEY."
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Step 3: Start Plano
|
# Step 3: Optionally start UI services (AnythingLLM, Jaeger)
|
||||||
echo "Starting Plano with config.yaml..."
|
# Jaeger must start before Plano so it can bind the OTEL port (4317)
|
||||||
planoai up config.yaml
|
|
||||||
|
|
||||||
# Step 4: Optionally start UI services (AnythingLLM, Jaeger)
|
|
||||||
if [ "$1" == "--with-ui" ]; then
|
if [ "$1" == "--with-ui" ]; then
|
||||||
echo "Starting UI services (AnythingLLM, Jaeger)..."
|
echo "Starting UI services (AnythingLLM, Jaeger)..."
|
||||||
docker compose up -d
|
docker compose up -d
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# Step 4: Start Plano
|
||||||
|
echo "Starting Plano with config.yaml..."
|
||||||
|
planoai up config.yaml
|
||||||
}
|
}
|
||||||
|
|
||||||
# Function to stop the demo
|
# Function to stop the demo
|
||||||
|
|
|
||||||
|
|
@ -24,15 +24,16 @@ start_demo() {
|
||||||
echo ".env file created with API keys."
|
echo ".env file created with API keys."
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Step 3: Start Plano
|
# Step 3: Optionally start UI services (AnythingLLM, Jaeger)
|
||||||
echo "Starting Plano with config.yaml..."
|
# Jaeger must start before Plano so it can bind the OTEL port (4317)
|
||||||
planoai up config.yaml
|
|
||||||
|
|
||||||
# Step 4: Optionally start UI services (AnythingLLM, Jaeger)
|
|
||||||
if [ "$1" == "--with-ui" ]; then
|
if [ "$1" == "--with-ui" ]; then
|
||||||
echo "Starting UI services (AnythingLLM, Jaeger)..."
|
echo "Starting UI services (AnythingLLM, Jaeger)..."
|
||||||
docker compose up -d
|
docker compose up -d
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# Step 4: Start Plano
|
||||||
|
echo "Starting Plano with config.yaml..."
|
||||||
|
planoai up config.yaml
|
||||||
}
|
}
|
||||||
|
|
||||||
# Function to stop the demo
|
# Function to stop the demo
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue