diff --git a/daemon/docker.go b/daemon/docker.go index 0012d9e..003687d 100644 --- a/daemon/docker.go +++ b/daemon/docker.go @@ -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}, } diff --git a/daemon/lvmh-daemon b/daemon/lvmh-daemon new file mode 100755 index 0000000..1d9a118 Binary files /dev/null and b/daemon/lvmh-daemon differ