Commit 19f1948
Optimize File System Management for Docker Launcher and Resolve class_registry Dependency Issue (#203)
* feat: Create TEMP_DIR if it doesn't exist
* chore: Update Docker Compose configuration and Dockerfile for MindSearch Docker launcher
* feat: Update Docker Compose configuration and Dockerfile modifying logic
* feat: Add new translations for current containers stop failure and container stopped and removed
* feat: Update Docker Compose configuration and Dockerfile for MindSearch Docker launcher
* Refactor Docker launcher's configuration setup and file handling
This commit refactors the configuration setup and file handling in the Docker launcher. It introduces a new `FileSystemManager` class with methods to ensure the existence of directories and files. The `ensure_dir` method is used to create the `temp` directory if it doesn't exist, and the `ensure_file` method is used to create the `.env` file with default content if it doesn't exist. This improves the reliability and maintainability of the Docker launcher.
* Add class_registry and python-dotenv lib
* Refactor Docker launcher's dependency installation and file handling
* Update docker/msdl/templates/backend/cloud_llm.dockerfile
Co-authored-by: liukuikun <24622904+Harold-lkk@users.noreply.github.com>
* cleanup dependencies & update MSDL version & enhance UX
---------
Co-authored-by: liukuikun <24622904+Harold-lkk@users.noreply.github.com>1 parent 20aeda0 commit 19f1948
File tree
5 files changed
+36
-16
lines changed- docker
- msdl
- templates/backend
5 files changed
+36
-16
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
191 | 191 | | |
192 | 192 | | |
193 | 193 | | |
194 | | - | |
| 194 | + | |
195 | 195 | | |
196 | 196 | | |
197 | 197 | | |
198 | | - | |
| 198 | + | |
199 | 199 | | |
200 | 200 | | |
201 | 201 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
5 | 27 | | |
6 | 28 | | |
7 | 29 | | |
8 | 30 | | |
9 | 31 | | |
10 | 32 | | |
11 | 33 | | |
12 | | - | |
| 34 | + | |
13 | 35 | | |
14 | 36 | | |
15 | 37 | | |
| |||
28 | 50 | | |
29 | 51 | | |
30 | 52 | | |
31 | | - | |
| 53 | + | |
32 | 54 | | |
33 | 55 | | |
34 | | - | |
| 56 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
11 | | - | |
12 | | - | |
13 | | - | |
14 | 11 | | |
15 | 12 | | |
16 | 13 | | |
| |||
20 | 17 | | |
21 | 18 | | |
22 | 19 | | |
23 | | - | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
24 | 23 | | |
25 | 24 | | |
26 | 25 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
14 | | - | |
15 | | - | |
16 | | - | |
17 | 14 | | |
18 | 15 | | |
19 | 16 | | |
20 | 17 | | |
21 | 18 | | |
22 | 19 | | |
23 | | - | |
24 | 20 | | |
25 | 21 | | |
26 | 22 | | |
27 | 23 | | |
28 | 24 | | |
29 | | - | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
30 | 28 | | |
31 | | - | |
| 29 | + | |
| 30 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
5 | | - | |
| 5 | + | |
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
| |||
0 commit comments