feat(agent-call): add contract-driven mock executor

This commit is contained in:
2026-09-12 19:29:49 +08:00
parent 6cd28c033e
commit d4ac130a47
47 changed files with 5936 additions and 30 deletions
+53
View File
@@ -1,6 +1,55 @@
---
name: agent-call
services:
rabbitmq:
image: >-
rabbitmq:4.1-management-alpine@sha256:eb6736723c5d0831ab12d29e7a2b8ee1082f744370c2a784b50b84b3b4d6d030
restart: unless-stopped
init: true
environment:
RABBITMQ_DEFAULT_USER: >-
${RABBITMQ_DEFAULT_USER:?Set RABBITMQ_DEFAULT_USER}
RABBITMQ_DEFAULT_PASS: >-
${RABBITMQ_DEFAULT_PASS:?Set RABBITMQ_DEFAULT_PASS}
healthcheck:
test: ["CMD", "rabbitmq-diagnostics", "-q", "ping"]
interval: 5s
timeout: 3s
retries: 12
volumes:
- rabbitmq_data:/var/lib/rabbitmq
logging:
driver: json-file
options: {max-size: "10m", max-file: "3"}
agent-call:
build:
context: .
dockerfile: Dockerfile
restart: unless-stopped
init: true
depends_on:
rabbitmq:
condition: service_healthy
ports:
- "127.0.0.1:${AGENT_CALL_PORT:-18080}:8080"
environment:
AGENT_CALL_MODE: "mock"
BROKER_MODE: "rabbit"
RABBITMQ_URL: "${RABBITMQ_URL:?Set RABBITMQ_URL}"
HTTP_TOKENS: "${HTTP_TOKENS:?Set HTTP_TOKENS}"
volumes:
- agent_call_data:/data
read_only: false
cap_drop: [ALL]
security_opt: [no-new-privileges:true]
pids_limit: 256
mem_limit: 512m
cpus: 2
logging:
driver: json-file
options: {max-size: "10m", max-file: "3"}
asr-web:
build:
context: ./services/asr-web
@@ -33,3 +82,7 @@ services:
options:
max-size: "10m"
max-file: "3"
volumes:
rabbitmq_data:
agent_call_data: