mirror of
https://github.com/yashshah9/agentbox.git
synced 2026-11-18 18:03:44 +00:00
Context: - Subprocess + netns probes are not enough for production agent code execution. - Ephemeral docker run --rm with --network=none and optional --memory is the essential isolation path for agentbox-backed products like agentforge. Test Plan: - docker compose run --rm test - ruff check src tests - pytest tests/test_docker.py (mocks CLI; live skip without docker) Additional Notes: - Default remains subprocess for local/CI unit tests. - Set AGENTBOX_SANDBOX_BACKEND=docker (plus Docker CLI/daemon) for production.
9 lines
254 B
Bash
9 lines
254 B
Bash
AGENTBOX_HOST=0.0.0.0
|
|
AGENTBOX_PORT=8080
|
|
AGENTBOX_LOG_LEVEL=INFO
|
|
AGENTBOX_DEFAULT_TIMEOUT_SECONDS=30
|
|
AGENTBOX_SANDBOX_BACKEND=subprocess
|
|
# AGENTBOX_SANDBOX_BACKEND=docker
|
|
# AGENTBOX_DOCKER_IMAGE=python:3.12-slim
|
|
# AGENTBOX_DOCKER_NODE_IMAGE=node:20-slim
|