daemon: set LVMH_AGENT/LVMH_REPO env on spawned containers (plugin contract)

This commit is contained in:
Raphael Westphal
2026-08-18 13:50:40 +02:00
parent 6c5dd50130
commit 6ba718730e
2 changed files with 4 additions and 0 deletions
+4
View File
@@ -58,6 +58,8 @@ const (
defaultWorkerModels string = "/app/build/docker/worker-models.json" defaultWorkerModels string = "/app/build/docker/worker-models.json"
envProviderAPIKey string = "ZAI_RENAUD_API_KEY" envProviderAPIKey string = "ZAI_RENAUD_API_KEY"
envLVMHSessionID string = "LVMH_SESSION_ID" envLVMHSessionID string = "LVMH_SESSION_ID"
envLVMHAgent string = "LVMH_AGENT"
envLVMHRepo string = "LVMH_REPO"
stopTimeoutSeconds int = 10 stopTimeoutSeconds int = 10
buildContextReadLimit int64 = 64 << 20 buildContextReadLimit int64 = 64 << 20
) )
@@ -397,6 +399,8 @@ func (s *Spawner) createAndStart(ctx context.Context, repo, slug, sessionID stri
envToken + "=" + daemonToken, envToken + "=" + daemonToken,
"LVMH_URL=" + s.containerURL, "LVMH_URL=" + s.containerURL,
envLVMHSessionID + "=" + sessionID, envLVMHSessionID + "=" + sessionID,
envLVMHAgent + "=1",
envLVMHRepo + "=" + repo,
}, },
Labels: map[string]string{labelSession: sessionID}, Labels: map[string]string{labelSession: sessionID},
} }
BIN
View File
Binary file not shown.