feat: enhance agent skills sandbox configuration and availability
- Updated .env.example to set default sandbox mode to 'docker' and added timeout and docker image variables. - Modified docker-compose files to include a sandbox service for building and pulling the sandbox image. - Adjusted frontend API to reflect sandbox availability for skills, ensuring UI elements are conditionally displayed based on sandbox status. - Implemented backend logic to disable skills when the sandbox is not enabled, improving error handling and user experience.
This commit is contained in:
@@ -94,6 +94,17 @@ services:
|
||||
- neo4j
|
||||
- full
|
||||
|
||||
# Sandbox 镜像:仅用于 build/pull,非常驻服务;本地 app 执行 Skills 时按需 docker run 该镜像,用毕即释
|
||||
sandbox:
|
||||
image: wechatopenai/weknora-sandbox:${WEKNORA_VERSION:-latest}
|
||||
build:
|
||||
context: .
|
||||
dockerfile: docker/Dockerfile.sandbox
|
||||
profiles:
|
||||
- sandbox
|
||||
command: ["true"]
|
||||
restart: "no"
|
||||
|
||||
docreader:
|
||||
image: wechatopenai/weknora-docreader:latest
|
||||
container_name: WeKnora-docreader-dev
|
||||
|
||||
Reference in New Issue
Block a user