fix: compose named cockpit modes from capabilities

This commit is contained in:
vee
2026-09-07 20:52:19 +08:00
parent cf9b89508c
commit 6b2b644ee6
23 changed files with 2917 additions and 124 deletions
+10 -6
View File
@@ -16,11 +16,15 @@ The server layout is:
├── artifacts/user-presets/
├── artifacts/server/ # GSCU infrared catalog and server-side state
├── artifacts/tmp/ # Runtime gateway and calibration state
└── artifacts/self-repair/
├── artifacts/self-repair/
└── artifacts/mode-profiles/ # User-created modes for all vehicles
```
Vehicle-specific user-created function modes are persisted from
`config/modes/vehicles/denza_n7/user/` into the otherwise read-only container.
User-created function modes are persisted from the ignored host path
`artifacts/mode-profiles/` into the service's separate writable user-mode
registry at `/app/artifacts/mode-profiles/`, including common and future
vehicle-specific modes.
Preset files under `/app/config/modes` remain read-only and are never modified.
Build and start the service:
@@ -32,21 +36,21 @@ mkdir -p \
artifacts/server \
artifacts/tmp \
artifacts/self-repair \
config/modes/vehicles/denza_n7/user
artifacts/mode-profiles
chown -R 10001:10001 \
artifacts/runs \
artifacts/user-presets \
artifacts/server \
artifacts/tmp \
artifacts/self-repair \
config/modes/vehicles/denza_n7/user
artifacts/mode-profiles
chmod 0700 \
artifacts/runs \
artifacts/user-presets \
artifacts/server \
artifacts/tmp \
artifacts/self-repair \
config/modes/vehicles/denza_n7/user
artifacts/mode-profiles
docker compose -f deploy/server/compose.yaml up -d --build
docker compose -f deploy/server/compose.yaml ps
```