Commit
·
e21a39d
1
Parent(s):
9de5a0c
update readme for docker
Browse files- README.md +11 -5
- README_zh.md +10 -3
README.md
CHANGED
@@ -147,8 +147,6 @@ cp owl/.env_template .env
|
|
147 |
|
148 |
## **Running with Docker**
|
149 |
|
150 |
-
If you prefer to run the OWL project using Docker, we provide full Docker support:
|
151 |
-
|
152 |
```bash
|
153 |
# Clone the repository
|
154 |
git clone https://github.com/camel-ai/owl.git
|
@@ -158,14 +156,22 @@ cd owl
|
|
158 |
cp owl/.env_template owl/.env
|
159 |
# Edit the .env file and fill in your API keys
|
160 |
|
161 |
-
# Build and run the Docker container
|
162 |
-
docker-compose up -d
|
163 |
|
|
|
|
|
|
|
164 |
# Run OWL inside the container
|
165 |
docker-compose exec owl bash -c "xvfb-python run.py"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
166 |
```
|
167 |
|
168 |
-
For more detailed Docker usage instructions, including cross-platform support, optimized configurations, and troubleshooting, please refer to [DOCKER_README.md](DOCKER_README_en.md).
|
169 |
|
170 |
# 🚀 Quick Start
|
171 |
|
|
|
147 |
|
148 |
## **Running with Docker**
|
149 |
|
|
|
|
|
150 |
```bash
|
151 |
# Clone the repository
|
152 |
git clone https://github.com/camel-ai/owl.git
|
|
|
156 |
cp owl/.env_template owl/.env
|
157 |
# Edit the .env file and fill in your API keys
|
158 |
|
|
|
|
|
159 |
|
160 |
+
# Option 1: Using docker-compose directly
|
161 |
+
cd .container
|
162 |
+
docker-compose up -d
|
163 |
# Run OWL inside the container
|
164 |
docker-compose exec owl bash -c "xvfb-python run.py"
|
165 |
+
|
166 |
+
# Option 2: Build and run using the provided scripts
|
167 |
+
cd .container
|
168 |
+
chmod +x build_docker.sh
|
169 |
+
./build_docker.sh
|
170 |
+
# Run OWL inside the container
|
171 |
+
./run_in_docker.sh "your question"
|
172 |
```
|
173 |
|
174 |
+
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).
|
175 |
|
176 |
# 🚀 Quick Start
|
177 |
|
README_zh.md
CHANGED
@@ -155,14 +155,21 @@ cd owl
|
|
155 |
cp owl/.env_template owl/.env
|
156 |
# 编辑.env文件,填入您的API密钥
|
157 |
|
158 |
-
#
|
|
|
159 |
docker-compose up -d
|
160 |
-
|
161 |
# 在容器中运行OWL
|
162 |
docker-compose exec owl bash -c "xvfb-python run.py"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
163 |
```
|
164 |
|
165 |
-
更多详细的Docker使用说明,包括跨平台支持、优化配置和故障排除,请参阅 [DOCKER_README.md](DOCKER_README.md)
|
166 |
|
167 |
# 🚀 快速开始
|
168 |
|
|
|
155 |
cp owl/.env_template owl/.env
|
156 |
# 编辑.env文件,填入您的API密钥
|
157 |
|
158 |
+
# 选项1:直接使用docker-compose
|
159 |
+
cd .container
|
160 |
docker-compose up -d
|
|
|
161 |
# 在容器中运行OWL
|
162 |
docker-compose exec owl bash -c "xvfb-python run.py"
|
163 |
+
|
164 |
+
# 选项2:使用提供的脚本构建和运行
|
165 |
+
cd .container
|
166 |
+
chmod +x build_docker.sh
|
167 |
+
./build_docker.sh
|
168 |
+
# 在容器中运行OWL
|
169 |
+
./run_in_docker.sh "您的问题"
|
170 |
```
|
171 |
|
172 |
+
更多详细的Docker使用说明,包括跨平台支持、优化配置和故障排除,请参阅 [DOCKER_README.md](.container/DOCKER_README.md)
|
173 |
|
174 |
# 🚀 快速开始
|
175 |
|