Commit 103368c
committed
chore: update Dockerfile and tests for BASIC_MEMORY_PROJECT_ROOT
Updates containerized deployment to use both environment variables
for clean project organization and path constraints.
## Dockerfile Changes
- Set BASIC_MEMORY_HOME=/app/data/basic-memory (main project location)
- Set BASIC_MEMORY_PROJECT_ROOT=/app/data (constrain all projects to volume)
- Create /app/data/basic-memory directory
Benefits:
- Main project cleanly separated in /app/data/basic-memory/
- All projects constrained to /app/data/ (volume mount)
- Users can't accidentally create projects outside mounted volume
- Consistent with cloud deployment pattern
Directory structure:
/app/data/
├── basic-memory/ (main project)
│ └── *.md
└── other-project/ (optional additional projects)
## Test Fixture Changes
- Add config cache invalidation in config_manager fixture
- Ensures each test starts with clean config state
- Prevents test pollution from cached config values
Signed-off-by: phernandez <paul@basicmachines.co>1 parent fed7075 commit 103368c
2 files changed
Lines changed: 8 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
27 | | - | |
| 27 | + | |
28 | 28 | | |
29 | 29 | | |
30 | 30 | | |
31 | | - | |
| 31 | + | |
| 32 | + | |
32 | 33 | | |
33 | 34 | | |
34 | 35 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
78 | 78 | | |
79 | 79 | | |
80 | 80 | | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
81 | 86 | | |
82 | 87 | | |
83 | 88 | | |
| |||
0 commit comments