diff prod/install-ess-app.sh @ 607:3ec3180d23a4

merge
author Justin Kleinknecht <justin.kleinknecht@mcoecn.org>
date Tue, 01 Jul 2025 20:51:22 +0100
parents d69f39c55332
children
line wrap: on
line diff
--- a/prod/install-ess-app.sh	Tue Jul 01 20:50:56 2025 +0100
+++ b/prod/install-ess-app.sh	Tue Jul 01 20:51:22 2025 +0100
@@ -71,6 +71,19 @@
 fi
 #
 #
+if [ ! -z "$miniOrangeEnabled" ]; then
+    echo "Adding MiniOrange Configuration"
+    dockerRunCommand="$dockerRunCommand
+        -e MINI_ORANGE_ENABLED=$miniOrangeEnabled
+        -e MINI_ORANGE_CLIENT_ID=$miniOrangeClientId
+        -e MINI_ORANGE_CLIENT_SECRET=$miniOrangeClientSecret
+        -e MINI_ORANGE_API_HOSTNAME=$miniOrangeApiHostname
+        -e MINI_ORANGE_FAIL_OPEN=$miniOrangeFailOpen
+        -e MINI_ORANGE_APP_HOST=$miniOrangeEssHost
+        -e MINI_ORANGE_MINUTES_UNTIL_EXPIRATION=$miniOrangeMinutesUntilExpiration"
+fi
+#
+#
 if [ ! -z "$ads_config1_enabled" ]; then
     echo "Add Window Active Director Configuration 1"
     dockerRunCommand="$dockerRunCommand
@@ -104,6 +117,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