mirror of
https://github.com/yashshah9/agentbox.git
synced 2026-11-19 02:16:20 +00:00
Context: - tar.add on directories recursively re-included main.py/main.js that snapshot restore is supposed to skip. - AgentboxClient.raise_for_status turned expected 408 timeouts into opaque httpx errors. - Missing runtimes returned HTTP 200 with exit 127 instead of 400. Test Plan: - docker compose run --rm test - tests/test_api.py::test_snapshot_restore_keeps_workspace_file - tests/test_api.py::test_run_timeout_limit Additional Notes: - health CLI now prints the package version, matching the other five CLIs. - TestClient is used as a context manager to avoid the Starlette lifespan warning path.
28 lines
653 B
YAML
28 lines
653 B
YAML
services:
|
|
agentbox:
|
|
build:
|
|
context: .
|
|
dockerfile: docker/Dockerfile
|
|
target: runtime
|
|
ports:
|
|
- "8080:8080"
|
|
environment:
|
|
AGENTBOX_LOG_LEVEL: INFO
|
|
AGENTBOX_DEFAULT_TIMEOUT_SECONDS: 30
|
|
AGENTBOX_SNAPSHOT_DIR: /tmp/agentbox-snapshots
|
|
healthcheck:
|
|
test: ["CMD", "python", "-c", "import urllib.request; urllib.request.urlopen('http://127.0.0.1:8080/health')"]
|
|
interval: 10s
|
|
timeout: 5s
|
|
retries: 3
|
|
|
|
test:
|
|
build:
|
|
context: .
|
|
dockerfile: docker/Dockerfile
|
|
target: dev
|
|
volumes:
|
|
- .:/app
|
|
working_dir: /app
|
|
command: ["pytest", "tests/", "-v"]
|