# HG changeset patch # User Marc Davis # Date 1726597527 14400 # Node ID f05817aee0f06ee3eda7ac726f4251fde3951183 # Parent f5c4bb5366048fe68ec7fdc35faab1300bbc21fa Add mini orange envars diff -r f5c4bb536604 -r f05817aee0f0 prod/install-inventory-app.sh --- a/prod/install-inventory-app.sh Tue Sep 17 14:20:09 2024 -0400 +++ b/prod/install-inventory-app.sh Tue Sep 17 14:25:27 2024 -0400 @@ -46,6 +46,13 @@ dockerRunCommand="$dockerRunCommand -e DUO_USXS_HOST=$duo_usxs_host -e DUO_USXS_PORT=$duo_usxs_port -e DUO_USXS_CONTEXT=$duo_usxs_context -e DUO_MINUTES_UNTIL_EXPIRATION=$duo_minutes_until_expiration " 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 " + dockerRunCommand="$dockerRunCommand -e MINI_ORANGE_FAIL_OPEN=$miniOrangeFailOpen -e MINI_ORANGE_APP_HOST=$miniOrangeEssHost -e MINI_ORANGE_MINUTES_UNTIL_EXPIRATION=$miniOrangeMinutesUntilExpiration " +fi +# dockerRunCommand="$dockerRunCommand -d $artifactUrl/inventory-app:$appVersion" # # Execute constructed docker run command to create $entityId-inventory-app container connected to db and docker network diff -r f5c4bb536604 -r f05817aee0f0 prod/update-inventory-app.sh --- a/prod/update-inventory-app.sh Tue Sep 17 14:20:09 2024 -0400 +++ b/prod/update-inventory-app.sh Tue Sep 17 14:25:27 2024 -0400 @@ -56,6 +56,13 @@ dockerRunCommand="$dockerRunCommand -e DUO_USXS_HOST=$duo_usxs_host -e DUO_USXS_PORT=$duo_usxs_port -e DUO_USXS_CONTEXT=$duo_usxs_context -e DUO_MINUTES_UNTIL_EXPIRATION=$duo_minutes_until_expiration " 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 " + dockerRunCommand="$dockerRunCommand -e MINI_ORANGE_FAIL_OPEN=$miniOrangeFailOpen -e MINI_ORANGE_APP_HOST=$miniOrangeEssHost -e MINI_ORANGE_MINUTES_UNTIL_EXPIRATION=$miniOrangeMinutesUntilExpiration " +fi +# dockerRunCommand="$dockerRunCommand -d $artifactUrl/inventory-app:$appVersion" # # Execute constructed docker run command to create $entityId-inventory-app container connected to db and docker network