changeset 580:b6f03eb10850

add option to run applications as support instances
author Marc Davis <marc.davis@mcoecn.org>
date Thu, 05 Sep 2024 14:08:27 -0400
parents 46eb4a0ea5b6
children fecefdafcaf3 646ecb227dbc
files prod/install-ess-app.sh prod/update-ess-app.sh
diffstat 2 files changed, 14 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/prod/install-ess-app.sh	Wed Sep 04 12:55:21 2024 -0400
+++ b/prod/install-ess-app.sh	Thu Sep 05 14:08:27 2024 -0400
@@ -104,6 +104,13 @@
 fi
 #
 #
+support_instance=${support_instance:-false}
+if [ "$support_instance" = "true" ]; then
+    echo "Setting application instance type to Support"
+    dockerRunCommand="$dockerRunCommand -e APPLICATION_INSTANCE_TYPE=Support"
+fi
+#
+#
 dockerRunCommand="$dockerRunCommand -d $artifactUrl/ess-app:$appVersion"
 #
 # Execute constructed docker run command to create $entityId-ess-app container connected to db and docker network
--- a/prod/update-ess-app.sh	Wed Sep 04 12:55:21 2024 -0400
+++ b/prod/update-ess-app.sh	Thu Sep 05 14:08:27 2024 -0400
@@ -112,6 +112,13 @@
 fi
 #
 #
+support_instance=${support_instance:-false}
+if [ "$support_instance" = "true" ]; then
+    echo "Setting application instance type to Support"
+    dockerRunCommand="$dockerRunCommand -e APPLICATION_INSTANCE_TYPE=Support"
+fi
+#
+#
 dockerRunCommand="$dockerRunCommand -d $artifactUrl/ess-app:$appVersion"
 #
 # Execute constructed docker run command to create $entityId-ess-app container connected to db and docker network