comparison prod/install-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
44 if [ ! -z "$duo_enabled" ]; then 44 if [ ! -z "$duo_enabled" ]; then
45 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 " 45 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 "
46 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 " 46 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 "
47 fi 47 fi
48 # 48 #
49 #
50 if [ ! -z "$miniOrangeEnabled" ]; then
51 echo "Adding MiniOrange Configuration"
52 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 "
53 dockerRunCommand="$dockerRunCommand -e MINI_ORANGE_FAIL_OPEN=$miniOrangeFailOpen -e MINI_ORANGE_APP_HOST=$miniOrangeEssHost -e MINI_ORANGE_MINUTES_UNTIL_EXPIRATION=$miniOrangeMinutesUntilExpiration "
54 fi
55 #
49 dockerRunCommand="$dockerRunCommand -d $artifactUrl/inventory-app:$appVersion" 56 dockerRunCommand="$dockerRunCommand -d $artifactUrl/inventory-app:$appVersion"
50 # 57 #
51 # Execute constructed docker run command to create $entityId-inventory-app container connected to db and docker network 58 # Execute constructed docker run command to create $entityId-inventory-app container connected to db and docker network
52 echo "Executing docker run command" 59 echo "Executing docker run command"
53 $dockerRunCommand 60 $dockerRunCommand