Skip to content

Commit 92543b7

Browse files
committed
fix(Docker): add sqlite & Pull dependencies when packing & update readme
1 parent a4cdf3b commit 92543b7

File tree

4 files changed

+37
-21
lines changed

4 files changed

+37
-21
lines changed

Dockerfile

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,15 @@ RUN apt install python3.10-dev python3.10-venv python3-pip -y
1414
# Utils
1515
RUN apt install -y curl \
1616
lsof \
17-
git
17+
git \
18+
sqlite3
1819

1920
COPY ./ /app
2021

2122
RUN chmod +x /app/run.sh
2223

24+
RUN python3 -m pip install -i https://pypi.tuna.tsinghua.edu.cn/simple -r /app/requirements.txt
25+
2326
WORKDIR /app
2427
EXPOSE 8080 8081
2528

README.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -59,17 +59,17 @@ Through the above introduction and Demo demonstration, you must be curious about
5959
6. Complete requirement development: Follow the instructions on the page to complete requirement development, and view the generated code in the `./workspace` directory.
6060

6161
2. Run with Docker
62-
```shell
63-
1. Create a directory: mkdir -p workspace
64-
2. Copy 'env.yaml.tpl' from the repository to the current directory and rename it to 'env.yaml'
65-
3. Modify the configuration file: edit 'env.yaml' and add necessary information such as GPT Token.
66-
4. docker run -it \
62+
1. Create a directory: `mkdir -p workspace`
63+
2. Copy [env.yaml.tpl](https://github.com/kuafuai/DevOpsGPT/blob/master/env.yaml.tpl) from the repository to the current directory and rename it to `env.yaml`
64+
3. Modify the configuration file: edit `env.yaml` and add necessary information such as GPT Token.
65+
4. ```
66+
docker run -it \
6767
-v$PWD/workspace:/app/workspace \
6868
-v$PWD/env.yaml:/app/env.yaml \
6969
-p8080:8080 -p8081:8081 kuafuai/devopsgpt:latest
70+
```
7071
5. Access the service: Access the service through a browser (access address provided in the startup log, the default is http://127.0.0.1:8080).
71-
6. Complete the requirement development: complete the requirement development according to the guidance of the page, and view the generated code in the './workspace 'directory
72-
```
72+
6. Complete the requirement development: complete the requirement development according to the guidance of the page, and view the generated code in the `./workspace ` directory
7373
7474
**For detailed documentation and configuration parameters, please refer to the [documentation link](docs/DOCUMENT.md).**
7575

docs/README_CN.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -71,17 +71,17 @@
7171
6. 完成需求开发:按照页面引导完成需求开发,在 `./workspace` 目录下查看生成的代码。
7272

7373
2. Docker运行
74-
```shell
75-
1. 创建一个目录:mkdir -p workspace
76-
2. 从代码仓库中复制 `env.yaml.tpl` 到当前目录,并重命名为 `env.yaml`
74+
1. 创建一个目录:`mkdir -p workspace`
75+
2. 从代码仓库中复制 [env.yaml.tpl](https://github.com/kuafuai/DevOpsGPT/blob/master/env.yaml.tpl) 到当前目录,并重命名为 `env.yaml`
7776
3. 修改配置文件:编辑 `env.yaml`,添加GPT Token等必要信息。
78-
4. docker run -it \
77+
4. ```
78+
docker run -it \
7979
-v$PWD/workspace:/app/workspace \
8080
-v$PWD/env.yaml:/app/env.yaml \
8181
-p8080:8080 -p8081:8081 kuafuai/devopsgpt:latest
82+
```
8283
5. 访问服务:通过浏览器访问服务(启动日志中提供的访问地址,默认为 http://127.0.0.1:8080)
8384
6. 完成需求开发:按照页面引导完成需求开发,在 `./workspace` 目录下查看生成的代码
84-
```
8585
8686
**详细文档和配置参数请参考 [文档链接](./DOCUMENT_CN.md)。**
8787

docs/README_JA.md

Lines changed: 21 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -48,14 +48,27 @@ AI Driven Software Development Automation Solution(略称: DevOpsGPT)へよ
4848

4949
## クイックスタート
5050

51-
1. 最新のコードをクローンするか、リリースされたバージョンを選択します。
52-
2. 設定ファイルを作成する: `env.yaml.tpl` をコピーし、`env.yaml` にリネームする。
53-
3. 設定ファイルを修正する: 設定ファイルを修正する。`env.yaml` を編集し、GPT トークンなど必要な情報を追加する(詳細な手順は[ドキュメントリンク](./DOCUMENT.md)を参照)。
54-
4. サービスを実行します: Linux や Mac では `sh run.sh` を、Windows では `run.bat` をダブルクリックする。
55-
5. サービスにアクセスする: ブラウザからサービスにアクセスする(スタートアップログでアクセスアドレスを確認する、デフォルトは http://127.0.0.1:8080)。
56-
6. 要件開発を完了する: ページの指示に従って要件開発を完了し、生成されたコードを `./workspace` ディレクトリに表示します。
57-
58-
詳細なドキュメントと設定パラメータについては、[ドキュメントリンク](./DOCUMENT.md)を参照してください。
51+
1. ソースコードの実行
52+
1. [リリースバージョン](https://github.com/kuafuai/DevOpsGPT/releases)を選択するか、最新のコードをクローン(不安定)し、SQLiteとPython 3.7以上を準備します。
53+
2. 設定ファイルの生成:`env.yaml.tpl`をコピーして`env.yaml`として名前を変更します。
54+
3. 設定ファイルの変更:`env.yaml`を編集し、必要なGPTトークンなどを追加します。
55+
4. サービスの実行:LinuxまたはMacで`sh run.sh`を実行し、Windowsで`run.bat`をダブルクリックして実行します。
56+
5. サービスへのアクセス:ブラウザを使用してサービスにアクセスします(起動ログに表示されるアクセスアドレス、デフォルトは http://127.0.0.1:8080)。
57+
6. 要件の開発の完了:ページの案内に従って要件の開発を完了し、`./workspace`ディレクトリで生成されたコードを確認します。
58+
59+
2. Dockerの実行
60+
1. ディレクトリを作成します:`mkdir -p workspace`
61+
2. コードリポジトリから [env.yaml.tpl](https://github.com/kuafuai/DevOpsGPT/blob/master/env.yaml.tpl) を現在のディレクトリにコピーし、`env.yaml` として名前を変更します。
62+
3. 設定ファイルの変更:`env.yaml`を編集し、必要なGPTトークンなどを追加します。
63+
4. ```
64+
docker run -it \
65+
-v$PWD/workspace:/app/workspace \
66+
-v$PWD/env.yaml:/app/env.yaml \
67+
-p8080:8080 -p8081:8081 kuafuai/devopsgpt:latest
68+
```
69+
5. サービスへのアクセス:ブラウザを使用してサービスにアクセスします(起動ログに表示されるアクセスアドレス、デフォルトは http://127.0.0.1:8080)。
70+
6. 要件の開発の完了:ページの案内に従って要件の開発を完了し、`./workspace`ディレクトリで生成されたコードを確認します。
71+
5972
6073
6174
## 制限事項

0 commit comments

Comments
 (0)