Files
Yash Shah a9d1c6554b feat(v0.7): Docker sandbox backend for real isolation
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.
2026-09-14 23:49:33 +05:30

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