Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 15 additions & 1 deletion charts/codefresh/files/updateSystemReImages.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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'},
Expand All @@ -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
}

Expand All @@ -65,4 +79,4 @@ disableMongoTelemetry
for re in ${DEFAULT_RE_NAMES[@]}; do
echo "Updating the runtime $re"
updateRESpec $re
done
done
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand Down Expand Up @@ -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",
Expand Down