-
Notifications
You must be signed in to change notification settings - Fork 582
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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 <[email protected]> * cleanup dependencies & update MSDL version & enhance UX --------- Co-authored-by: liukuikun <[email protected]>
- Loading branch information
1 parent
20aeda0
commit 19f1948
Showing
5 changed files
with
36 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters