From 231b4c565e59e582393fce118726de7a79546d1a Mon Sep 17 00:00:00 2001 From: Pascal Sthamer <10992664+P4sca1@users.noreply.github.com> Date: Wed, 12 Nov 2025 14:21:38 +0100 Subject: [PATCH] fix autodeploy not working in k8s Signed-off-by: Pascal Sthamer <10992664+P4sca1@users.noreply.github.com> Signed-off-by: Pascal Sthamer --- functions/onprem/worker/worker.go | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/functions/onprem/worker/worker.go b/functions/onprem/worker/worker.go index abf793fc..cd287a2f 100644 --- a/functions/onprem/worker/worker.go +++ b/functions/onprem/worker/worker.go @@ -4079,7 +4079,7 @@ func sendAppRequest(ctx context.Context, incomingUrl, appName string, port int, // Has some issues with loading when running multiple workers and such. func baseDeploy() { - //var cli *dockerclient.Client + var cli *dockerclient.Client //var err error if isKubernetes != "true" { @@ -4146,9 +4146,12 @@ func baseDeploy() { log.Printf("[DEBUG] Deploying app with identifier %s to ensure basic apps are available from the get-go", identifier) //findAppInfo("frikky/shuffle:http_1.4.0", "http_1-4-0", true) - go findAppInfo(value, identifier, false) + // go findAppInfo(value, identifier, false) - //go deployApp(cli, value, identifier, env, workflowExecution, action) + // findAppInfo leads to the following error: + // Unable to list services: Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running? (may continue anyway?) + // Replaced with deployApp again. See https://github.com/Shuffle/Shuffle/issues/1817. + go deployApp(cli, value, identifier, env, workflowExecution, action) //err := deployApp(cli, value, identifier, env, workflowExecution, action) //if err != nil { // log.Printf("[DEBUG] Failed deploying app %s: %s", value, err)