forked from CopilotKit/CopilotKit
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.integrations.yml
More file actions
39 lines (39 loc) · 1.09 KB
/
Copy pathdocker-compose.integrations.yml
File metadata and controls
39 lines (39 loc) · 1.09 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
# Aimock sidecar for per-package e2e testing in CI.
#
# Boots aimock with the depth-organized fixture directories so per-package
# Playwright tests get deterministic LLM responses.
#
# Usage:
# docker compose -f docker-compose.integrations.yml up -d aimock
# OPENAI_BASE_URL=http://localhost:4010/v1 OPENAI_API_KEY=test-key \
# cd ../integrations/<slug> && pnpm dev &
# npx playwright test
#
# Or in CI, reference this as a service container alongside the test runner.
services:
aimock:
image: ghcr.io/copilotkit/aimock:latest
volumes:
- ../aimock/shared:/fixtures/shared:ro
- ../aimock/d4:/fixtures/d4:ro
- ../aimock/d6:/fixtures/d6:ro
command:
[
"--fixtures",
"/fixtures/shared",
"--fixtures",
"/fixtures/d4",
"--fixtures",
"/fixtures/d6",
"--host",
"0.0.0.0",
"--validate-on-load",
]
ports:
- "4010:4010"
healthcheck:
test: ["CMD", "wget", "-q", "--spider", "http://localhost:4010/health"]
interval: 5s
timeout: 3s
retries: 10
start_period: 5s