From 1463c8898c5a7961c47b6d2e73268233311ab4f3 Mon Sep 17 00:00:00 2001 From: Mikhail Klimko Date: Tue, 9 Dec 2025 12:55:48 +0300 Subject: [PATCH 1/4] fix: engine command --- .../templates/configmaps/runtimeEnvironments.json.tpl | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/charts/codefresh/templates/configmaps/runtimeEnvironments.json.tpl b/charts/codefresh/templates/configmaps/runtimeEnvironments.json.tpl index d52b9ad55..f63f92dc9 100644 --- a/charts/codefresh/templates/configmaps/runtimeEnvironments.json.tpl +++ b/charts/codefresh/templates/configmaps/runtimeEnvironments.json.tpl @@ -31,9 +31,8 @@ }, "image": "{{ include "codefresh.buildImageName" (dict "registry" .Values.global.imageRegistry "imageFullName" .Values.runtimeImages.ENGINE_IMAGE) }}", "command": [ - "npm", - "run", - "start" + "node", + "dist/server/index.js" ], "envVars": { {{- if .Values.global.env }} @@ -111,9 +110,8 @@ "runtimeScheduler": { "image": "{{ include "codefresh.buildImageName" (dict "registry" .Values.global.imageRegistry "imageFullName" .Values.runtimeImages.ENGINE_IMAGE) }}", "command": [ - "npm", - "run", - "start" + "node", + "dist/server/index.js" ], "envVars": { "CONTAINER_LOGGER_SHOW_PROGRESS": "true", From 2ce56b4aa3b29e65d432f8cb38dc38c83c2daacc Mon Sep 17 00:00:00 2001 From: Mikhail Klimko Date: Tue, 9 Dec 2025 13:44:49 +0300 Subject: [PATCH 2/4] fix: engine command --- charts/codefresh/files/updateSystemReImages.sh | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/charts/codefresh/files/updateSystemReImages.sh b/charts/codefresh/files/updateSystemReImages.sh index 6edd11c04..a87e0100b 100755 --- a/charts/codefresh/files/updateSystemReImages.sh +++ b/charts/codefresh/files/updateSystemReImages.sh @@ -35,6 +35,13 @@ function updateRESpec { } } )" + mongosh "$MONGO_URI_RE_MANAGER" --tls --tlsCertificateKeyFile /etc/ssl/mongodb/ca.pem --tlsAllowInvalidHostnames --tlsAllowInvalidCertificates --eval "db.getCollection('runtime-environment').updateOne( + {'metadata.name': '$1'}, + { \$set: { + \"runtimeScheduler.command\": \"[node, dist/server/index.js]\", + } + } + )" else mongosh "$MONGO_URI_RE_MANAGER" --eval "db.getCollection('runtime-environment').updateOne( {'metadata.name': '$1'}, @@ -57,6 +64,13 @@ function updateRESpec { } } )" + mongosh "$MONGO_URI_RE_MANAGER" --eval "db.getCollection('runtime-environment').updateOne( + {'metadata.name': '$1'}, + { \$set: { + \"runtimeScheduler.command\": \"[node, dist/server/index.js]\", + } + } + )" fi } @@ -65,4 +79,4 @@ disableMongoTelemetry for re in ${DEFAULT_RE_NAMES[@]}; do echo "Updating the runtime $re" updateRESpec $re -done \ No newline at end of file +done From 13f372c1250b15e0e0fc100641dccd8ab667d25b Mon Sep 17 00:00:00 2001 From: Mikhail Klimko Date: Tue, 9 Dec 2025 16:16:52 +0300 Subject: [PATCH 3/4] fix: engine command --- charts/codefresh/files/updateSystemReImages.sh | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/charts/codefresh/files/updateSystemReImages.sh b/charts/codefresh/files/updateSystemReImages.sh index a87e0100b..36782032c 100755 --- a/charts/codefresh/files/updateSystemReImages.sh +++ b/charts/codefresh/files/updateSystemReImages.sh @@ -38,7 +38,7 @@ function updateRESpec { mongosh "$MONGO_URI_RE_MANAGER" --tls --tlsCertificateKeyFile /etc/ssl/mongodb/ca.pem --tlsAllowInvalidHostnames --tlsAllowInvalidCertificates --eval "db.getCollection('runtime-environment').updateOne( {'metadata.name': '$1'}, { \$set: { - \"runtimeScheduler.command\": \"[node, dist/server/index.js]\", + \"runtimeScheduler.command\": ["node", "dist/server/index.js"], } } )" @@ -65,12 +65,12 @@ function updateRESpec { } )" mongosh "$MONGO_URI_RE_MANAGER" --eval "db.getCollection('runtime-environment').updateOne( - {'metadata.name': '$1'}, - { \$set: { - \"runtimeScheduler.command\": \"[node, dist/server/index.js]\", - } + {'metadata.name': '$1'}, + { \$set: { + \"runtimeScheduler.command\": [\"node\", \"dist/server/index.js\"] } - )" + } + )" fi } From 0a49b297a8e3a3968f490cbfa2bda067371aa1ec Mon Sep 17 00:00:00 2001 From: Mikhail Klimko Date: Tue, 9 Dec 2025 16:40:16 +0300 Subject: [PATCH 4/4] fix: engine command --- charts/codefresh/files/updateSystemReImages.sh | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/charts/codefresh/files/updateSystemReImages.sh b/charts/codefresh/files/updateSystemReImages.sh index 36782032c..038166270 100755 --- a/charts/codefresh/files/updateSystemReImages.sh +++ b/charts/codefresh/files/updateSystemReImages.sh @@ -36,12 +36,12 @@ function updateRESpec { } )" mongosh "$MONGO_URI_RE_MANAGER" --tls --tlsCertificateKeyFile /etc/ssl/mongodb/ca.pem --tlsAllowInvalidHostnames --tlsAllowInvalidCertificates --eval "db.getCollection('runtime-environment').updateOne( - {'metadata.name': '$1'}, - { \$set: { - \"runtimeScheduler.command\": ["node", "dist/server/index.js"], - } + {'metadata.name': '$1'}, + { \$set: { + \"runtimeScheduler.command\": [\"node\", \"dist/server/index.js\"] } - )" + } + )" else mongosh "$MONGO_URI_RE_MANAGER" --eval "db.getCollection('runtime-environment').updateOne( {'metadata.name': '$1'},