comparison prod/update-inventory-app.sh @ 604:f05817aee0f0

Add mini orange envars
author Marc Davis <marc.davis@mcoecn.org>
date Tue, 17 Sep 2024 14:25:27 -0400
parents c3f58eddce4f
children
comparison
equal deleted inserted replaced
603:f5c4bb536604 604:f05817aee0f0
54 if [ ! -z "$duo_enabled" ]; then 54 if [ ! -z "$duo_enabled" ]; then
55 dockerRunCommand="$dockerRunCommand -e DUO_ENABLED=$duo_enabled -e DUO_CLIENT_ID=$duo_client_id -e DUO_CLIENT_SECRET=$duo_client_secret -e DUO_API_HOSTNAME=$duo_api_hostname -e DUO_FAIL_OPEN=$duo_fail_open " 55 dockerRunCommand="$dockerRunCommand -e DUO_ENABLED=$duo_enabled -e DUO_CLIENT_ID=$duo_client_id -e DUO_CLIENT_SECRET=$duo_client_secret -e DUO_API_HOSTNAME=$duo_api_hostname -e DUO_FAIL_OPEN=$duo_fail_open "
56 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 " 56 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 "
57 fi 57 fi
58 # 58 #
59 #
60 if [ ! -z "$miniOrangeEnabled" ]; then
61 echo "Adding MiniOrange Configuration"
62 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 "
63 dockerRunCommand="$dockerRunCommand -e MINI_ORANGE_FAIL_OPEN=$miniOrangeFailOpen -e MINI_ORANGE_APP_HOST=$miniOrangeEssHost -e MINI_ORANGE_MINUTES_UNTIL_EXPIRATION=$miniOrangeMinutesUntilExpiration "
64 fi
65 #
59 dockerRunCommand="$dockerRunCommand -d $artifactUrl/inventory-app:$appVersion" 66 dockerRunCommand="$dockerRunCommand -d $artifactUrl/inventory-app:$appVersion"
60 # 67 #
61 # Execute constructed docker run command to create $entityId-inventory-app container connected to db and docker network 68 # Execute constructed docker run command to create $entityId-inventory-app container connected to db and docker network
62 echo "Executing docker run command" 69 echo "Executing docker run command"
63 $dockerRunCommand 70 $dockerRunCommand