fix: persist local session identity on the writable session volume
This commit is contained in:
@@ -17,6 +17,11 @@ test("consumer bundle pins every service and carries all source bind resources",
|
|||||||
assert.equal(compose.services["catalog-migrate"].image, images.core);
|
assert.equal(compose.services["catalog-migrate"].image, images.core);
|
||||||
assert.equal(compose.services["workspace-maintenance"].image, images.core);
|
assert.equal(compose.services["workspace-maintenance"].image, images.core);
|
||||||
assert.equal(compose.services["embedding-model-init"].image, images.embedding);
|
assert.equal(compose.services["embedding-model-init"].image, images.embedding);
|
||||||
|
// Both session commands and maintenance must retain local identity under a
|
||||||
|
// writable shared volume when the installer maps the operator's Unix UID.
|
||||||
|
assert.equal(compose.services.core.environment.THT_HOME, "/data/sessions/.thothii");
|
||||||
|
assert.equal(compose.services["workspace-maintenance"].environment.THT_HOME,
|
||||||
|
compose.services.core.environment.THT_HOME);
|
||||||
for (const service of Object.values(compose.services)) {
|
for (const service of Object.values(compose.services)) {
|
||||||
assert.equal(service.build, undefined);
|
assert.equal(service.build, undefined);
|
||||||
assert.equal(service.pull_policy, undefined);
|
assert.equal(service.pull_policy, undefined);
|
||||||
|
|||||||
@@ -12,6 +12,7 @@ services:
|
|||||||
THT_HARNESS_DIR: /app/harness
|
THT_HARNESS_DIR: /app/harness
|
||||||
THT_BIN: /opt/venv/bin/tht
|
THT_BIN: /opt/venv/bin/tht
|
||||||
THT_DATA_ROOT: /data
|
THT_DATA_ROOT: /data
|
||||||
|
THT_HOME: /data/sessions/.thothii
|
||||||
SETTINGS_FILE: /data/settings/settings.json
|
SETTINGS_FILE: /data/settings/settings.json
|
||||||
THT_EVIDENCE_HOST_REGISTRY_ROOT: ${THT_WORKSPACE_REGISTRY_ROOT:-}
|
THT_EVIDENCE_HOST_REGISTRY_ROOT: ${THT_WORKSPACE_REGISTRY_ROOT:-}
|
||||||
THT_MAINTENANCE_FILE: /data/settings/maintenance.json
|
THT_MAINTENANCE_FILE: /data/settings/maintenance.json
|
||||||
@@ -124,6 +125,7 @@ services:
|
|||||||
THT_HARNESS_DIR: /app/harness
|
THT_HARNESS_DIR: /app/harness
|
||||||
THT_BIN: /opt/venv/bin/tht
|
THT_BIN: /opt/venv/bin/tht
|
||||||
THT_DATA_ROOT: /data
|
THT_DATA_ROOT: /data
|
||||||
|
THT_HOME: /data/sessions/.thothii
|
||||||
THT_WORKSPACE_REGISTRY_ROOT: /data/workspace-registry
|
THT_WORKSPACE_REGISTRY_ROOT: /data/workspace-registry
|
||||||
THT_WORKSPACE_GIT_REMOTE: ${THT_WORKSPACE_GIT_REMOTE:?set THT_WORKSPACE_GIT_REMOTE}
|
THT_WORKSPACE_GIT_REMOTE: ${THT_WORKSPACE_GIT_REMOTE:?set THT_WORKSPACE_GIT_REMOTE}
|
||||||
THT_WORKSPACE_GIT_BRANCH: ${THT_WORKSPACE_GIT_BRANCH:-main}
|
THT_WORKSPACE_GIT_BRANCH: ${THT_WORKSPACE_GIT_BRANCH:-main}
|
||||||
|
|||||||
Reference in New Issue
Block a user