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:
Aaron Yordanyan committed 2025-06-14 10:19:12 +04:00
1 parent e8fc6d4fa7
commit 0401123008
2 files changed
+3 -3

No files matched your search

+1 -1
View File
@@ -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
View File
@@ -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: