# HG changeset patch # User Marc Davis # Date 1725559707 14400 # Node ID b6f03eb1085077236e33726d199103f388813490 # Parent 46eb4a0ea5b61ce8d76e8adfce6f48a77bf780b7 add option to run applications as support instances diff -r 46eb4a0ea5b6 -r b6f03eb10850 prod/install-ess-app.sh --- 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 diff -r 46eb4a0ea5b6 -r b6f03eb10850 prod/update-ess-app.sh --- 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