From d3975f0c494ecc04913f865324bc42ad1c2410d3 Mon Sep 17 00:00:00 2001 From: "stephane.david" Date: Sun, 19 Jul 2026 14:42:16 +0200 Subject: [PATCH] Change config json file and set version to 0.0.2 --- imagebuild.sh | 8 ++++---- n8n-task-runners.json | 42 ++++++++++++++++++++++++++++++++++++++++-- 2 files changed, 44 insertions(+), 6 deletions(-) diff --git a/imagebuild.sh b/imagebuild.sh index e828d36..72cbe23 100644 --- a/imagebuild.sh +++ b/imagebuild.sh @@ -1,5 +1,5 @@ -set VERSION=0.0.1 -docker build -t n8n-runners-custom:$VERSION . +export VERSION=0.0.2 +docker build -t n8n-runners-custom:"$VERSION" . docker login gitea.sda.zone -docker tag n8n-runners-custom:$VERSION gitea.sda.zone/stephane.david/n8n-runners-custom:$VERSION -docker push gitea.sda.zone/stephane.david/n8n-runners-custom:$VERSION \ No newline at end of file +docker tag n8n-runners-custom:"$VERSION" gitea.sda.zone/stephane.david/n8n-runners-custom:"$VERSION" +docker push gitea.sda.zone/stephane.david/n8n-runners-custom:"$VERSION" \ No newline at end of file diff --git a/n8n-task-runners.json b/n8n-task-runners.json index 1ee782c..fddd87a 100644 --- a/n8n-task-runners.json +++ b/n8n-task-runners.json @@ -2,13 +2,51 @@ "task-runners": [ { "runner-type": "javascript", + "workdir": "/home/runner", + "command": "/usr/local/bin/node", + "args": [ + "--disallow-code-generation-from-strings", + "--disable-proto=delete", + "/opt/runners/task-runner-javascript/dist/start.js" + ], + "health-check-server-port": "5681", + "allowed-env": [ + "PATH", + "GENERIC_TIMEZONE", + "NODE_OPTIONS", + "NODE_PATH", + "N8N_RUNNERS_AUTO_SHUTDOWN_TIMEOUT", + "N8N_RUNNERS_TASK_TIMEOUT", + "N8N_RUNNERS_MAX_CONCURRENCY", + "N8N_SENTRY_DSN", + "N8N_VERSION", + "ENVIRONMENT", + "DEPLOYMENT_NAME", + "HOME" + ], "env-overrides": { - "NODE_FUNCTION_ALLOW_BUILTIN": "*", - "NODE_FUNCTION_ALLOW_EXTERNAL": "*" + "NODE_FUNCTION_ALLOW_BUILTIN": "crypto", + "NODE_FUNCTION_ALLOW_EXTERNAL": "moment", + "N8N_RUNNERS_HEALTH_CHECK_SERVER_HOST": "0.0.0.0" } }, { "runner-type": "python", + "workdir": "/home/runner", + "command": "/opt/runners/task-runner-python/.venv/bin/python", + "args": ["-I", "-B", "-X", "disable_remote_debug", "-m", "src.main"], + "health-check-server-port": "5682", + "allowed-env": [ + "PATH", + "N8N_RUNNERS_LAUNCHER_LOG_LEVEL", + "N8N_RUNNERS_AUTO_SHUTDOWN_TIMEOUT", + "N8N_RUNNERS_TASK_TIMEOUT", + "N8N_RUNNERS_MAX_CONCURRENCY", + "N8N_SENTRY_DSN", + "N8N_VERSION", + "ENVIRONMENT", + "DEPLOYMENT_NAME" + ], "env-overrides": { "N8N_RUNNERS_STDLIB_ALLOW": "*", "N8N_RUNNERS_EXTERNAL_ALLOW": "*"