Skip to content

Commit ae4165c

Browse files
E8-T3: Address code review feedback - fix port notes, subshell usage, and doc paths
Co-authored-by: dylan-mccarthy <[email protected]>
1 parent 67177dd commit ae4165c

File tree

3 files changed

+17
-11
lines changed

3 files changed

+17
-11
lines changed

DEMO.md

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,10 @@ Before running the demo, ensure you have:
2323
- **curl** (command-line HTTP client)
2424
- **4GB+ RAM** available for containers
2525

26+
> **Note**: This demo uses Docker Compose and accesses the Control Plane API on port 8080.
27+
> If running services locally with `dotnet run`, the API uses port 5109 by default.
28+
> Set `CONTROL_PLANE_URL` environment variable to override the default URL.
29+
2630
### Installation
2731

2832
Install prerequisites on different platforms:
@@ -364,7 +368,7 @@ environment:
364368
docker compose restart control-plane node-runtime
365369
```
366370

367-
See [Azure AI Foundry Integration](../docs/AZURE_AI_FOUNDRY_INTEGRATION.md) for detailed setup.
371+
See [Azure AI Foundry Integration](docs/AZURE_AI_FOUNDRY_INTEGRATION.md) for detailed setup.
368372

369373
## Testing
370374

@@ -528,7 +532,7 @@ After completing the demo:
528532
```
529533

530534
3. **Configure Azure AI Foundry**
531-
- See [Azure AI Foundry Integration](../docs/AZURE_AI_FOUNDRY_INTEGRATION.md)
535+
- See [Azure AI Foundry Integration](docs/AZURE_AI_FOUNDRY_INTEGRATION.md)
532536

533537
4. **Run Performance Tests**
534538
```bash
@@ -551,7 +555,7 @@ After completing the demo:
551555
- [System Architecture Document](../sad.md) - High-level design
552556
- [Invoice Classifier Agent](../docs/INVOICE_CLASSIFIER.md) - Agent details
553557
- [Agent Definitions](../agents/README.md) - Agent configuration
554-
- [Azure AI Foundry](../docs/AZURE_AI_FOUNDRY_INTEGRATION.md) - LLM setup
558+
- [Azure AI Foundry](docs/AZURE_AI_FOUNDRY_INTEGRATION.md) - LLM setup
555559
- [Deployment Guide](../DEPLOYMENT.md) - Production deployment
556560
- [Observability](../OBSERVABILITY.md) - Monitoring setup
557561
- [CI/CD](../CI-CD.md) - Pipeline configuration

demo-invoice-classifier-noninteractive.sh

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ RED='\033[0;31m'
2323
NC='\033[0m'
2424

2525
# Configuration
26-
CONTROL_PLANE_URL="${CONTROL_PLANE_URL:-http://localhost:8080}"
26+
CONTROL_PLANE_URL="${CONTROL_PLANE_URL:-http://localhost:8080}" # Docker Compose port (local dev uses 5109)
2727
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
2828
TIMEOUT=120
2929

@@ -95,9 +95,10 @@ sleep 5
9595
# Seed agent
9696
log_info "Seeding Invoice Classifier agent..."
9797
if [ -f "${SCRIPT_DIR}/agents/seed-invoice-classifier.sh" ]; then
98-
cd "${SCRIPT_DIR}/agents"
99-
CONTROL_PLANE_URL="${CONTROL_PLANE_URL}" ./seed-invoice-classifier.sh > /dev/null 2>&1
100-
cd "${SCRIPT_DIR}"
98+
(
99+
cd "${SCRIPT_DIR}/agents" && \
100+
CONTROL_PLANE_URL="${CONTROL_PLANE_URL}" ./seed-invoice-classifier.sh > /dev/null 2>&1
101+
)
101102
log_success "Agent seeded"
102103
else
103104
log_error "Seed script not found"

demo-invoice-classifier.sh

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ BOLD='\033[1m'
3434
NC='\033[0m' # No Color
3535

3636
# Configuration
37-
CONTROL_PLANE_URL="${CONTROL_PLANE_URL:-http://localhost:8080}"
37+
CONTROL_PLANE_URL="${CONTROL_PLANE_URL:-http://localhost:8080}" # Docker Compose port (local dev uses 5109)
3838
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
3939

4040
# Helper functions
@@ -157,9 +157,10 @@ seed_agent() {
157157
fi
158158

159159
log_step "Running agent seed script..."
160-
cd "${SCRIPT_DIR}/agents"
161-
CONTROL_PLANE_URL="${CONTROL_PLANE_URL}" ./seed-invoice-classifier.sh
162-
cd "${SCRIPT_DIR}"
160+
(
161+
cd "${SCRIPT_DIR}/agents" && \
162+
CONTROL_PLANE_URL="${CONTROL_PLANE_URL}" ./seed-invoice-classifier.sh
163+
)
163164

164165
log_success "Invoice Classifier agent deployed successfully"
165166
}

0 commit comments

Comments
 (0)