daemon: set LVMH_AGENT/LVMH_REPO env on spawned containers (plugin contract)
This commit is contained in:
@@ -58,6 +58,8 @@ const (
|
||||
defaultWorkerModels string = "/app/build/docker/worker-models.json"
|
||||
envProviderAPIKey string = "ZAI_RENAUD_API_KEY"
|
||||
envLVMHSessionID string = "LVMH_SESSION_ID"
|
||||
envLVMHAgent string = "LVMH_AGENT"
|
||||
envLVMHRepo string = "LVMH_REPO"
|
||||
stopTimeoutSeconds int = 10
|
||||
buildContextReadLimit int64 = 64 << 20
|
||||
)
|
||||
@@ -397,6 +399,8 @@ func (s *Spawner) createAndStart(ctx context.Context, repo, slug, sessionID stri
|
||||
envToken + "=" + daemonToken,
|
||||
"LVMH_URL=" + s.containerURL,
|
||||
envLVMHSessionID + "=" + sessionID,
|
||||
envLVMHAgent + "=1",
|
||||
envLVMHRepo + "=" + repo,
|
||||
},
|
||||
Labels: map[string]string{labelSession: sessionID},
|
||||
}
|
||||
|
||||
Executable
BIN
Binary file not shown.
Reference in New Issue
Block a user