mirror of
https://github.com/camel-ai/owl.git
synced 2026-03-22 05:57:17 +08:00
update readme for docker
This commit is contained in:
16
README.md
16
README.md
@@ -147,8 +147,6 @@ cp owl/.env_template .env
|
|||||||
|
|
||||||
## **Running with Docker**
|
## **Running with Docker**
|
||||||
|
|
||||||
If you prefer to run the OWL project using Docker, we provide full Docker support:
|
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
# Clone the repository
|
# Clone the repository
|
||||||
git clone https://github.com/camel-ai/owl.git
|
git clone https://github.com/camel-ai/owl.git
|
||||||
@@ -158,14 +156,22 @@ cd owl
|
|||||||
cp owl/.env_template owl/.env
|
cp owl/.env_template owl/.env
|
||||||
# Edit the .env file and fill in your API keys
|
# Edit the .env file and fill in your API keys
|
||||||
|
|
||||||
# Build and run the Docker container
|
|
||||||
docker-compose up -d
|
|
||||||
|
|
||||||
|
# Option 1: Using docker-compose directly
|
||||||
|
cd .container
|
||||||
|
docker-compose up -d
|
||||||
# Run OWL inside the container
|
# Run OWL inside the container
|
||||||
docker-compose exec owl bash -c "xvfb-python run.py"
|
docker-compose exec owl bash -c "xvfb-python run.py"
|
||||||
|
|
||||||
|
# Option 2: Build and run using the provided scripts
|
||||||
|
cd .container
|
||||||
|
chmod +x build_docker.sh
|
||||||
|
./build_docker.sh
|
||||||
|
# Run OWL inside the container
|
||||||
|
./run_in_docker.sh "your question"
|
||||||
```
|
```
|
||||||
|
|
||||||
For more detailed Docker usage instructions, including cross-platform support, optimized configurations, and troubleshooting, please refer to [DOCKER_README.md](DOCKER_README_en.md).
|
For more detailed Docker usage instructions, including cross-platform support, optimized configurations, and troubleshooting, please refer to [DOCKER_README.md](.container/DOCKER_README_en.md).
|
||||||
|
|
||||||
# 🚀 Quick Start
|
# 🚀 Quick Start
|
||||||
|
|
||||||
|
|||||||
13
README_zh.md
13
README_zh.md
@@ -155,14 +155,21 @@ cd owl
|
|||||||
cp owl/.env_template owl/.env
|
cp owl/.env_template owl/.env
|
||||||
# 编辑.env文件,填入您的API密钥
|
# 编辑.env文件,填入您的API密钥
|
||||||
|
|
||||||
# 构建并运行Docker容器
|
# 选项1:直接使用docker-compose
|
||||||
|
cd .container
|
||||||
docker-compose up -d
|
docker-compose up -d
|
||||||
|
|
||||||
# 在容器中运行OWL
|
# 在容器中运行OWL
|
||||||
docker-compose exec owl bash -c "xvfb-python run.py"
|
docker-compose exec owl bash -c "xvfb-python run.py"
|
||||||
|
|
||||||
|
# 选项2:使用提供的脚本构建和运行
|
||||||
|
cd .container
|
||||||
|
chmod +x build_docker.sh
|
||||||
|
./build_docker.sh
|
||||||
|
# 在容器中运行OWL
|
||||||
|
./run_in_docker.sh "您的问题"
|
||||||
```
|
```
|
||||||
|
|
||||||
更多详细的Docker使用说明,包括跨平台支持、优化配置和故障排除,请参阅 [DOCKER_README.md](DOCKER_README.md)
|
更多详细的Docker使用说明,包括跨平台支持、优化配置和故障排除,请参阅 [DOCKER_README.md](.container/DOCKER_README.md)
|
||||||
|
|
||||||
# 🚀 快速开始
|
# 🚀 快速开始
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user