From bf871852b8a1a4280426c8475939a73e19cf58e9 Mon Sep 17 00:00:00 2001 From: "IETM_FIXE\\ietm6" Date: Sun, 14 Jun 2026 17:18:48 +0200 Subject: [PATCH] =?UTF-8?q?Mise=20=C3=A0=20jour=20de=20l'orchestrateur?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- demo/.env.example | 7 +++++-- demo/orchestrator/config.go | 8 +++++++- demo/orchestrator/docker.go | 4 ++-- 3 files changed, 14 insertions(+), 5 deletions(-) diff --git a/demo/.env.example b/demo/.env.example index 3bd89a2..bb24b14 100644 --- a/demo/.env.example +++ b/demo/.env.example @@ -1,7 +1,10 @@ # Copie en .env sur le serveur (jamais commite). -# Registre et tag des images core / brain a spawner par session. -REGISTRY=git.igmlcreation.fr +# Registre, namespace et tag des images core / brain a spawner par session. +# Doit pointer sur le registre ou la CI publie reellement (ghcr.io). +# Le slash final de IMAGE_NAMESPACE est important : image = REGISTRY/NAMESPACEcore:TAG +REGISTRY=ghcr.io +IMAGE_NAMESPACE=igmlcreation/loremind- TAG=latest # Secret partage entre core et brain (genere aleatoirement au build de chaque diff --git a/demo/orchestrator/config.go b/demo/orchestrator/config.go index 0a92681..fc78e76 100644 --- a/demo/orchestrator/config.go +++ b/demo/orchestrator/config.go @@ -10,6 +10,7 @@ import ( // Config centralise les parametres lus depuis les variables d'env au boot. type Config struct { Registry string + Namespace string Tag string MaxSessions int SessionTTL time.Duration @@ -27,7 +28,12 @@ type Config struct { func loadConfig() *Config { return &Config{ - Registry: envStr("REGISTRY", "git.igmlcreation.fr"), + // Aligne sur la nouvelle convention de publication des images + // (ghcr.io/igmlcreation/loremind-{core,brain}). L'ancien registre Gitea + // (git.igmlcreation.fr/ietm64/*) n'est plus republie : il restait gele + // sur une vieille version. Le slash final de Namespace est volontaire. + Registry: envStr("REGISTRY", "ghcr.io"), + Namespace: envStr("IMAGE_NAMESPACE", "igmlcreation/loremind-"), Tag: envStr("TAG", "latest"), MaxSessions: envInt("MAX_SESSIONS", 10), SessionTTL: time.Duration(envInt("SESSION_TTL_MINUTES", 20)) * time.Minute, diff --git a/demo/orchestrator/docker.go b/demo/orchestrator/docker.go index 0c9bb32..67c3305 100644 --- a/demo/orchestrator/docker.go +++ b/demo/orchestrator/docker.go @@ -111,7 +111,7 @@ func (d *DockerClient) SpawnTrio(ctx context.Context, sessionID string, cfg *Con if err := d.runContainer(ctx, runSpec{ Name: brainName, - Image: cfg.Registry + "/ietm64/brain:" + cfg.Tag, + Image: cfg.Registry + "/" + cfg.Namespace + "brain:" + cfg.Tag, Env: []string{ "INTERNAL_SHARED_SECRET=" + brainSecret, // Pas de provider LLM configure en demo : les features IA echoueront @@ -129,7 +129,7 @@ func (d *DockerClient) SpawnTrio(ctx context.Context, sessionID string, cfg *Con if err := d.runContainer(ctx, runSpec{ Name: coreName, - Image: cfg.Registry + "/ietm64/core:" + cfg.Tag, + Image: cfg.Registry + "/" + cfg.Namespace + "core:" + cfg.Tag, Env: []string{ "SPRING_DATASOURCE_URL=jdbc:postgresql://" + pgName + ":5432/loremind", "SPRING_DATASOURCE_USERNAME=loremind",