mirror of
https://github.com/tiennm99/serena.git
synced 2026-10-13 16:15:29 +00:00
Refine Docker configuration handling and documentation
- Updated exception handling in `agent.py` for better error specificity (catching `FileNotFoundError`). - Added contextual comment for `CONFIG_FILE_DOCKER` in `agent.py`. - Updated `DOCKER.md` to reflect the new GitHub repository link.
This commit is contained in:
1 parent
e8fc6d4fa7
commit
0401123008
2 files changed
+3
-3
No files matched your search
@@ -158,4 +158,4 @@ We're working on:
|
||||
- Dynamic port allocation
|
||||
- Windows line-ending handling
|
||||
|
||||
For updates and issues, please check the [GitHub repository](https://github.com/AbanteAI/serena).
|
||||
For updates and issues, please check the [GitHub repository](https://github.com/diazoxide/serena).
|
||||
+2
-2
@@ -111,7 +111,7 @@ def is_running_in_docker() -> bool:
|
||||
try:
|
||||
with open('/proc/self/cgroup', 'r') as f:
|
||||
return 'docker' in f.read()
|
||||
except:
|
||||
except FileNotFoundError:
|
||||
return False
|
||||
|
||||
|
||||
@@ -328,7 +328,7 @@ class SerenaConfig(SerenaConfigBase):
|
||||
loaded_commented_yaml: CommentedMap
|
||||
|
||||
CONFIG_FILE = "serena_config.yml"
|
||||
CONFIG_FILE_DOCKER = "serena_config.docker.yml"
|
||||
CONFIG_FILE_DOCKER = "serena_config.docker.yml" # Docker-specific config file; auto-generated if missing, mounted via docker-compose for user customization
|
||||
|
||||
@classmethod
|
||||
def autogenerate(cls) -> None:
|
||||
|
||||
Reference in new issue
Block a user