Mercurial > public > ssdt-docker
annotate prod/update-ess-app.sh @ 605:46a67e7afd98 release/2.23.0 tip
flow: Created branch 'release/2.23.0'.
author | Marc Davis <marc.davis@mcoecn.org> |
---|---|
date | Wed, 18 Sep 2024 20:38:06 -0400 |
parents | d69f39c55332 |
children |
rev | line source |
---|---|
528
e483148f5283
Add backup, restore, and update ess scripts. Handle ess in workflows update and remove container stop/removal from install ess script.
Marc Davis <marc.davis@mcoecn.org>
parents:
diff
changeset
|
1 #!/bin/bash |
e483148f5283
Add backup, restore, and update ess scripts. Handle ess in workflows update and remove container stop/removal from install ess script.
Marc Davis <marc.davis@mcoecn.org>
parents:
diff
changeset
|
2 # |
e483148f5283
Add backup, restore, and update ess scripts. Handle ess in workflows update and remove container stop/removal from install ess script.
Marc Davis <marc.davis@mcoecn.org>
parents:
diff
changeset
|
3 # read required env variables |
e483148f5283
Add backup, restore, and update ess scripts. Handle ess in workflows update and remove container stop/removal from install ess script.
Marc Davis <marc.davis@mcoecn.org>
parents:
diff
changeset
|
4 BASEDIR="$PWD" |
e483148f5283
Add backup, restore, and update ess scripts. Handle ess in workflows update and remove container stop/removal from install ess script.
Marc Davis <marc.davis@mcoecn.org>
parents:
diff
changeset
|
5 source $BASEDIR/.env/ess-shared.properties |
e483148f5283
Add backup, restore, and update ess scripts. Handle ess in workflows update and remove container stop/removal from install ess script.
Marc Davis <marc.davis@mcoecn.org>
parents:
diff
changeset
|
6 source $BASEDIR/.env/ess-app.properties |
e483148f5283
Add backup, restore, and update ess scripts. Handle ess in workflows update and remove container stop/removal from install ess script.
Marc Davis <marc.davis@mcoecn.org>
parents:
diff
changeset
|
7 # |
e483148f5283
Add backup, restore, and update ess scripts. Handle ess in workflows update and remove container stop/removal from install ess script.
Marc Davis <marc.davis@mcoecn.org>
parents:
diff
changeset
|
8 # docker login |
e483148f5283
Add backup, restore, and update ess scripts. Handle ess in workflows update and remove container stop/removal from install ess script.
Marc Davis <marc.davis@mcoecn.org>
parents:
diff
changeset
|
9 echo "Attempting to login to $artifactUrl" |
e483148f5283
Add backup, restore, and update ess scripts. Handle ess in workflows update and remove container stop/removal from install ess script.
Marc Davis <marc.davis@mcoecn.org>
parents:
diff
changeset
|
10 docker login $artifactUrl -u $artifactUser -p $artifactPassword |
e483148f5283
Add backup, restore, and update ess scripts. Handle ess in workflows update and remove container stop/removal from install ess script.
Marc Davis <marc.davis@mcoecn.org>
parents:
diff
changeset
|
11 # |
e483148f5283
Add backup, restore, and update ess scripts. Handle ess in workflows update and remove container stop/removal from install ess script.
Marc Davis <marc.davis@mcoecn.org>
parents:
diff
changeset
|
12 # docker pull app image |
e483148f5283
Add backup, restore, and update ess scripts. Handle ess in workflows update and remove container stop/removal from install ess script.
Marc Davis <marc.davis@mcoecn.org>
parents:
diff
changeset
|
13 echo "Attempting to pull $artifactUrl/ess-app:$appVersion" |
e483148f5283
Add backup, restore, and update ess scripts. Handle ess in workflows update and remove container stop/removal from install ess script.
Marc Davis <marc.davis@mcoecn.org>
parents:
diff
changeset
|
14 docker pull $artifactUrl/ess-app:$appVersion |
e483148f5283
Add backup, restore, and update ess scripts. Handle ess in workflows update and remove container stop/removal from install ess script.
Marc Davis <marc.davis@mcoecn.org>
parents:
diff
changeset
|
15 # |
e483148f5283
Add backup, restore, and update ess scripts. Handle ess in workflows update and remove container stop/removal from install ess script.
Marc Davis <marc.davis@mcoecn.org>
parents:
diff
changeset
|
16 # docker stop ess app container |
e483148f5283
Add backup, restore, and update ess scripts. Handle ess in workflows update and remove container stop/removal from install ess script.
Marc Davis <marc.davis@mcoecn.org>
parents:
diff
changeset
|
17 echo "Attempting to stop $entityId-ess-app container" |
e483148f5283
Add backup, restore, and update ess scripts. Handle ess in workflows update and remove container stop/removal from install ess script.
Marc Davis <marc.davis@mcoecn.org>
parents:
diff
changeset
|
18 docker stop $entityId-ess-app |
e483148f5283
Add backup, restore, and update ess scripts. Handle ess in workflows update and remove container stop/removal from install ess script.
Marc Davis <marc.davis@mcoecn.org>
parents:
diff
changeset
|
19 # |
e483148f5283
Add backup, restore, and update ess scripts. Handle ess in workflows update and remove container stop/removal from install ess script.
Marc Davis <marc.davis@mcoecn.org>
parents:
diff
changeset
|
20 # docker rm ess app container |
e483148f5283
Add backup, restore, and update ess scripts. Handle ess in workflows update and remove container stop/removal from install ess script.
Marc Davis <marc.davis@mcoecn.org>
parents:
diff
changeset
|
21 echo "Attempting to remove $entityId-ess-app container" |
e483148f5283
Add backup, restore, and update ess scripts. Handle ess in workflows update and remove container stop/removal from install ess script.
Marc Davis <marc.davis@mcoecn.org>
parents:
diff
changeset
|
22 docker rm $entityId-ess-app |
e483148f5283
Add backup, restore, and update ess scripts. Handle ess in workflows update and remove container stop/removal from install ess script.
Marc Davis <marc.davis@mcoecn.org>
parents:
diff
changeset
|
23 # |
e483148f5283
Add backup, restore, and update ess scripts. Handle ess in workflows update and remove container stop/removal from install ess script.
Marc Davis <marc.davis@mcoecn.org>
parents:
diff
changeset
|
24 # Builder docker run command based on settings in env files |
e483148f5283
Add backup, restore, and update ess scripts. Handle ess in workflows update and remove container stop/removal from install ess script.
Marc Davis <marc.davis@mcoecn.org>
parents:
diff
changeset
|
25 echo "Building docker run command" |
e483148f5283
Add backup, restore, and update ess scripts. Handle ess in workflows update and remove container stop/removal from install ess script.
Marc Davis <marc.davis@mcoecn.org>
parents:
diff
changeset
|
26 dockerRunCommand="docker run --name $entityId-ess-app |
e483148f5283
Add backup, restore, and update ess scripts. Handle ess in workflows update and remove container stop/removal from install ess script.
Marc Davis <marc.davis@mcoecn.org>
parents:
diff
changeset
|
27 --restart=unless-stopped |
e483148f5283
Add backup, restore, and update ess scripts. Handle ess in workflows update and remove container stop/removal from install ess script.
Marc Davis <marc.davis@mcoecn.org>
parents:
diff
changeset
|
28 --network $entityId-ess-net |
e483148f5283
Add backup, restore, and update ess scripts. Handle ess in workflows update and remove container stop/removal from install ess script.
Marc Davis <marc.davis@mcoecn.org>
parents:
diff
changeset
|
29 -e SPRING_DATASOURCE_URL=jdbc:postgresql://$entityId-ess-db:5432/essdb |
e483148f5283
Add backup, restore, and update ess scripts. Handle ess in workflows update and remove container stop/removal from install ess script.
Marc Davis <marc.davis@mcoecn.org>
parents:
diff
changeset
|
30 -e SPRING_DATASOURCE_DRIVER_CLASS_NAME=org.postgresql.Driver |
e483148f5283
Add backup, restore, and update ess scripts. Handle ess in workflows update and remove container stop/removal from install ess script.
Marc Davis <marc.davis@mcoecn.org>
parents:
diff
changeset
|
31 -e SPRING_DATASOURCE_USERNAME=postgres |
e483148f5283
Add backup, restore, and update ess scripts. Handle ess in workflows update and remove container stop/removal from install ess script.
Marc Davis <marc.davis@mcoecn.org>
parents:
diff
changeset
|
32 -e SPRING_DATASOURCE_PASSWORD=$dbPassword |
e483148f5283
Add backup, restore, and update ess scripts. Handle ess in workflows update and remove container stop/removal from install ess script.
Marc Davis <marc.davis@mcoecn.org>
parents:
diff
changeset
|
33 -e SPRING_PROFILES_ACTIVE=prod |
e483148f5283
Add backup, restore, and update ess scripts. Handle ess in workflows update and remove container stop/removal from install ess script.
Marc Davis <marc.davis@mcoecn.org>
parents:
diff
changeset
|
34 -e APPLICATION_ADMIN_PASSWORD=$adminPassword |
e483148f5283
Add backup, restore, and update ess scripts. Handle ess in workflows update and remove container stop/removal from install ess script.
Marc Davis <marc.davis@mcoecn.org>
parents:
diff
changeset
|
35 -e APPLICATION_ADMIN_RESET=$resetAdminPassword |
e483148f5283
Add backup, restore, and update ess scripts. Handle ess in workflows update and remove container stop/removal from install ess script.
Marc Davis <marc.davis@mcoecn.org>
parents:
diff
changeset
|
36 -e USPS_CONFIGURATION_HOST=$uspsHost |
e483148f5283
Add backup, restore, and update ess scripts. Handle ess in workflows update and remove container stop/removal from install ess script.
Marc Davis <marc.davis@mcoecn.org>
parents:
diff
changeset
|
37 -e USPS_CONFIGURATION_PORT=$uspsPort |
e483148f5283
Add backup, restore, and update ess scripts. Handle ess in workflows update and remove container stop/removal from install ess script.
Marc Davis <marc.davis@mcoecn.org>
parents:
diff
changeset
|
38 -e USPS_CONFIGURATION_APIKEY=$uspsApiKey |
e483148f5283
Add backup, restore, and update ess scripts. Handle ess in workflows update and remove container stop/removal from install ess script.
Marc Davis <marc.davis@mcoecn.org>
parents:
diff
changeset
|
39 -e USPS_CONFIGURATION_REMOTEAPIKEY=$uspsRemoteApiKey |
e483148f5283
Add backup, restore, and update ess scripts. Handle ess in workflows update and remove container stop/removal from install ess script.
Marc Davis <marc.davis@mcoecn.org>
parents:
diff
changeset
|
40 -e WORKFLOWS_CONFIGURATION_HOST=$workflowsHost |
e483148f5283
Add backup, restore, and update ess scripts. Handle ess in workflows update and remove container stop/removal from install ess script.
Marc Davis <marc.davis@mcoecn.org>
parents:
diff
changeset
|
41 -e WORKFLOWS_CONFIGURATION_PORT=$workflowsPort |
e483148f5283
Add backup, restore, and update ess scripts. Handle ess in workflows update and remove container stop/removal from install ess script.
Marc Davis <marc.davis@mcoecn.org>
parents:
diff
changeset
|
42 -e WORKFLOWS_CONFIGURATION_API_KEY=$workflowsApiKey |
e483148f5283
Add backup, restore, and update ess scripts. Handle ess in workflows update and remove container stop/removal from install ess script.
Marc Davis <marc.davis@mcoecn.org>
parents:
diff
changeset
|
43 -e WORKFLOWS_CONFIGURATION_REMOTE_API_KEY=$workflowsRemoteApiKey |
e483148f5283
Add backup, restore, and update ess scripts. Handle ess in workflows update and remove container stop/removal from install ess script.
Marc Davis <marc.davis@mcoecn.org>
parents:
diff
changeset
|
44 -e JAVA_OPTS=$java_opts" |
e483148f5283
Add backup, restore, and update ess scripts. Handle ess in workflows update and remove container stop/removal from install ess script.
Marc Davis <marc.davis@mcoecn.org>
parents:
diff
changeset
|
45 # |
e483148f5283
Add backup, restore, and update ess scripts. Handle ess in workflows update and remove container stop/removal from install ess script.
Marc Davis <marc.davis@mcoecn.org>
parents:
diff
changeset
|
46 if [ ! -z "$virtualHost" ]; then |
e483148f5283
Add backup, restore, and update ess scripts. Handle ess in workflows update and remove container stop/removal from install ess script.
Marc Davis <marc.davis@mcoecn.org>
parents:
diff
changeset
|
47 dockerRunCommand="$dockerRunCommand -e VIRTUAL_HOST=$virtualHost" |
e483148f5283
Add backup, restore, and update ess scripts. Handle ess in workflows update and remove container stop/removal from install ess script.
Marc Davis <marc.davis@mcoecn.org>
parents:
diff
changeset
|
48 fi |
e483148f5283
Add backup, restore, and update ess scripts. Handle ess in workflows update and remove container stop/removal from install ess script.
Marc Davis <marc.davis@mcoecn.org>
parents:
diff
changeset
|
49 # |
e483148f5283
Add backup, restore, and update ess scripts. Handle ess in workflows update and remove container stop/removal from install ess script.
Marc Davis <marc.davis@mcoecn.org>
parents:
diff
changeset
|
50 if [ ! -z "$virtualPort" ]; then |
e483148f5283
Add backup, restore, and update ess scripts. Handle ess in workflows update and remove container stop/removal from install ess script.
Marc Davis <marc.davis@mcoecn.org>
parents:
diff
changeset
|
51 dockerRunCommand="$dockerRunCommand -e VIRTUAL_PORT=$virtualPort" |
e483148f5283
Add backup, restore, and update ess scripts. Handle ess in workflows update and remove container stop/removal from install ess script.
Marc Davis <marc.davis@mcoecn.org>
parents:
diff
changeset
|
52 fi |
e483148f5283
Add backup, restore, and update ess scripts. Handle ess in workflows update and remove container stop/removal from install ess script.
Marc Davis <marc.davis@mcoecn.org>
parents:
diff
changeset
|
53 # |
e483148f5283
Add backup, restore, and update ess scripts. Handle ess in workflows update and remove container stop/removal from install ess script.
Marc Davis <marc.davis@mcoecn.org>
parents:
diff
changeset
|
54 if [ ! -z "$letsencryptHost" ]; then |
e483148f5283
Add backup, restore, and update ess scripts. Handle ess in workflows update and remove container stop/removal from install ess script.
Marc Davis <marc.davis@mcoecn.org>
parents:
diff
changeset
|
55 dockerRunCommand="$dockerRunCommand -e LETSENCRYPT_HOST=$letsencryptHost" |
e483148f5283
Add backup, restore, and update ess scripts. Handle ess in workflows update and remove container stop/removal from install ess script.
Marc Davis <marc.davis@mcoecn.org>
parents:
diff
changeset
|
56 fi |
e483148f5283
Add backup, restore, and update ess scripts. Handle ess in workflows update and remove container stop/removal from install ess script.
Marc Davis <marc.davis@mcoecn.org>
parents:
diff
changeset
|
57 # |
e483148f5283
Add backup, restore, and update ess scripts. Handle ess in workflows update and remove container stop/removal from install ess script.
Marc Davis <marc.davis@mcoecn.org>
parents:
diff
changeset
|
58 if [ ! -z "$letsencryptEmail" ]; then |
e483148f5283
Add backup, restore, and update ess scripts. Handle ess in workflows update and remove container stop/removal from install ess script.
Marc Davis <marc.davis@mcoecn.org>
parents:
diff
changeset
|
59 dockerRunCommand="$dockerRunCommand -e LETSENCRYPT_EMAIL=$letsencryptEmail" |
e483148f5283
Add backup, restore, and update ess scripts. Handle ess in workflows update and remove container stop/removal from install ess script.
Marc Davis <marc.davis@mcoecn.org>
parents:
diff
changeset
|
60 fi |
e483148f5283
Add backup, restore, and update ess scripts. Handle ess in workflows update and remove container stop/removal from install ess script.
Marc Davis <marc.davis@mcoecn.org>
parents:
diff
changeset
|
61 # |
e483148f5283
Add backup, restore, and update ess scripts. Handle ess in workflows update and remove container stop/removal from install ess script.
Marc Davis <marc.davis@mcoecn.org>
parents:
diff
changeset
|
62 if [ ! -z "$hostPort" ]; then |
e483148f5283
Add backup, restore, and update ess scripts. Handle ess in workflows update and remove container stop/removal from install ess script.
Marc Davis <marc.davis@mcoecn.org>
parents:
diff
changeset
|
63 dockerRunCommand="$dockerRunCommand -p $hostPort" |
e483148f5283
Add backup, restore, and update ess scripts. Handle ess in workflows update and remove container stop/removal from install ess script.
Marc Davis <marc.davis@mcoecn.org>
parents:
diff
changeset
|
64 fi |
e483148f5283
Add backup, restore, and update ess scripts. Handle ess in workflows update and remove container stop/removal from install ess script.
Marc Davis <marc.davis@mcoecn.org>
parents:
diff
changeset
|
65 # |
e483148f5283
Add backup, restore, and update ess scripts. Handle ess in workflows update and remove container stop/removal from install ess script.
Marc Davis <marc.davis@mcoecn.org>
parents:
diff
changeset
|
66 # |
e483148f5283
Add backup, restore, and update ess scripts. Handle ess in workflows update and remove container stop/removal from install ess script.
Marc Davis <marc.davis@mcoecn.org>
parents:
diff
changeset
|
67 if [ ! -z "$duoEnabled" ]; then |
e483148f5283
Add backup, restore, and update ess scripts. Handle ess in workflows update and remove container stop/removal from install ess script.
Marc Davis <marc.davis@mcoecn.org>
parents:
diff
changeset
|
68 echo "Adding Duo Configuration" |
e483148f5283
Add backup, restore, and update ess scripts. Handle ess in workflows update and remove container stop/removal from install ess script.
Marc Davis <marc.davis@mcoecn.org>
parents:
diff
changeset
|
69 dockerRunCommand="$dockerRunCommand |
e483148f5283
Add backup, restore, and update ess scripts. Handle ess in workflows update and remove container stop/removal from install ess script.
Marc Davis <marc.davis@mcoecn.org>
parents:
diff
changeset
|
70 -e DUO_ENABLED=$duoEnabled |
e483148f5283
Add backup, restore, and update ess scripts. Handle ess in workflows update and remove container stop/removal from install ess script.
Marc Davis <marc.davis@mcoecn.org>
parents:
diff
changeset
|
71 -e DUO_CLIENT_ID=$duoClientId |
e483148f5283
Add backup, restore, and update ess scripts. Handle ess in workflows update and remove container stop/removal from install ess script.
Marc Davis <marc.davis@mcoecn.org>
parents:
diff
changeset
|
72 -e DUO_CLIENT_SECRET=$duoClientSecret |
e483148f5283
Add backup, restore, and update ess scripts. Handle ess in workflows update and remove container stop/removal from install ess script.
Marc Davis <marc.davis@mcoecn.org>
parents:
diff
changeset
|
73 -e DUO_API_HOSTNAME=$duoApiHostname |
e483148f5283
Add backup, restore, and update ess scripts. Handle ess in workflows update and remove container stop/removal from install ess script.
Marc Davis <marc.davis@mcoecn.org>
parents:
diff
changeset
|
74 -e DUO_FAIL_OPEN=$duoFailOpen |
e483148f5283
Add backup, restore, and update ess scripts. Handle ess in workflows update and remove container stop/removal from install ess script.
Marc Davis <marc.davis@mcoecn.org>
parents:
diff
changeset
|
75 -e DUO_ESS_HOST=$duoEssHost |
e483148f5283
Add backup, restore, and update ess scripts. Handle ess in workflows update and remove container stop/removal from install ess script.
Marc Davis <marc.davis@mcoecn.org>
parents:
diff
changeset
|
76 -e DUO_ESS_PORT=$duoEssPort |
e483148f5283
Add backup, restore, and update ess scripts. Handle ess in workflows update and remove container stop/removal from install ess script.
Marc Davis <marc.davis@mcoecn.org>
parents:
diff
changeset
|
77 -e DUO_ESS_CONTEXT=$duoEssContext |
e483148f5283
Add backup, restore, and update ess scripts. Handle ess in workflows update and remove container stop/removal from install ess script.
Marc Davis <marc.davis@mcoecn.org>
parents:
diff
changeset
|
78 -e DUO_MINUTES_UNTIL_EXPIRATION=$duoMinutesUntilExpiration" |
e483148f5283
Add backup, restore, and update ess scripts. Handle ess in workflows update and remove container stop/removal from install ess script.
Marc Davis <marc.davis@mcoecn.org>
parents:
diff
changeset
|
79 fi |
e483148f5283
Add backup, restore, and update ess scripts. Handle ess in workflows update and remove container stop/removal from install ess script.
Marc Davis <marc.davis@mcoecn.org>
parents:
diff
changeset
|
80 # |
e483148f5283
Add backup, restore, and update ess scripts. Handle ess in workflows update and remove container stop/removal from install ess script.
Marc Davis <marc.davis@mcoecn.org>
parents:
diff
changeset
|
81 # |
602 | 82 if [ ! -z "$miniOrangeEnabled" ]; then |
83 echo "Adding MiniOrange Configuration" | |
84 dockerRunCommand="$dockerRunCommand | |
85 -e MINI_ORANGE_ENABLED=$miniOrangeEnabled | |
86 -e MINI_ORANGE_CLIENT_ID=$miniOrangeClientId | |
87 -e MINI_ORANGE_CLIENT_SECRET=$miniOrangeClientSecret | |
88 -e MINI_ORANGE_API_HOSTNAME=$miniOrangeApiHostname | |
89 -e MINI_ORANGE_FAIL_OPEN=$miniOrangeFailOpen | |
90 -e MINI_ORANGE_APP_HOST=$miniOrangeEssHost | |
91 -e MINI_ORANGE_MINUTES_UNTIL_EXPIRATION=$miniOrangeMinutesUntilExpiration" | |
92 fi | |
93 # | |
94 # | |
528
e483148f5283
Add backup, restore, and update ess scripts. Handle ess in workflows update and remove container stop/removal from install ess script.
Marc Davis <marc.davis@mcoecn.org>
parents:
diff
changeset
|
95 if [ ! -z "$ads_config1_enabled" ]; then |
e483148f5283
Add backup, restore, and update ess scripts. Handle ess in workflows update and remove container stop/removal from install ess script.
Marc Davis <marc.davis@mcoecn.org>
parents:
diff
changeset
|
96 echo "Add Window Active Director Configuration 1" |
e483148f5283
Add backup, restore, and update ess scripts. Handle ess in workflows update and remove container stop/removal from install ess script.
Marc Davis <marc.davis@mcoecn.org>
parents:
diff
changeset
|
97 dockerRunCommand="$dockerRunCommand |
e483148f5283
Add backup, restore, and update ess scripts. Handle ess in workflows update and remove container stop/removal from install ess script.
Marc Davis <marc.davis@mcoecn.org>
parents:
diff
changeset
|
98 -e SSDT_ADS_CONFIG1_ENABLED=$ads_config1_enabled |
e483148f5283
Add backup, restore, and update ess scripts. Handle ess in workflows update and remove container stop/removal from install ess script.
Marc Davis <marc.davis@mcoecn.org>
parents:
diff
changeset
|
99 -e SSDT_ADS_CONFIG1_DOMAIN=$ads_config1_domain |
e483148f5283
Add backup, restore, and update ess scripts. Handle ess in workflows update and remove container stop/removal from install ess script.
Marc Davis <marc.davis@mcoecn.org>
parents:
diff
changeset
|
100 -e SSDT_ADS_CONFIG1_LDAP_URL=$ads_config1_ldap_url |
e483148f5283
Add backup, restore, and update ess scripts. Handle ess in workflows update and remove container stop/removal from install ess script.
Marc Davis <marc.davis@mcoecn.org>
parents:
diff
changeset
|
101 -e SSDT_ADS_CONFIG1_ROOT_DN=$ads_config1_root_dn |
e483148f5283
Add backup, restore, and update ess scripts. Handle ess in workflows update and remove container stop/removal from install ess script.
Marc Davis <marc.davis@mcoecn.org>
parents:
diff
changeset
|
102 -e SSDT_ADS_CONFIG1_SEARCH_FILTER=$ads_config1_search_filter" |
e483148f5283
Add backup, restore, and update ess scripts. Handle ess in workflows update and remove container stop/removal from install ess script.
Marc Davis <marc.davis@mcoecn.org>
parents:
diff
changeset
|
103 fi |
e483148f5283
Add backup, restore, and update ess scripts. Handle ess in workflows update and remove container stop/removal from install ess script.
Marc Davis <marc.davis@mcoecn.org>
parents:
diff
changeset
|
104 # |
e483148f5283
Add backup, restore, and update ess scripts. Handle ess in workflows update and remove container stop/removal from install ess script.
Marc Davis <marc.davis@mcoecn.org>
parents:
diff
changeset
|
105 # |
e483148f5283
Add backup, restore, and update ess scripts. Handle ess in workflows update and remove container stop/removal from install ess script.
Marc Davis <marc.davis@mcoecn.org>
parents:
diff
changeset
|
106 if [ ! -z "$ads_config2_enabled" ]; then |
e483148f5283
Add backup, restore, and update ess scripts. Handle ess in workflows update and remove container stop/removal from install ess script.
Marc Davis <marc.davis@mcoecn.org>
parents:
diff
changeset
|
107 echo "Add Window Active Director Configuration 2" |
e483148f5283
Add backup, restore, and update ess scripts. Handle ess in workflows update and remove container stop/removal from install ess script.
Marc Davis <marc.davis@mcoecn.org>
parents:
diff
changeset
|
108 dockerRunCommand="$dockerRunCommand |
e483148f5283
Add backup, restore, and update ess scripts. Handle ess in workflows update and remove container stop/removal from install ess script.
Marc Davis <marc.davis@mcoecn.org>
parents:
diff
changeset
|
109 -e SSDT_ADS_CONFIG2_ENABLED=$ads_config2_enabled |
e483148f5283
Add backup, restore, and update ess scripts. Handle ess in workflows update and remove container stop/removal from install ess script.
Marc Davis <marc.davis@mcoecn.org>
parents:
diff
changeset
|
110 -e SSDT_ADS_CONFIG2_DOMAIN=$ads_config2_domain |
e483148f5283
Add backup, restore, and update ess scripts. Handle ess in workflows update and remove container stop/removal from install ess script.
Marc Davis <marc.davis@mcoecn.org>
parents:
diff
changeset
|
111 -e SSDT_ADS_CONFIG2_LDAP_URL=$ads_config2_ldap_url |
e483148f5283
Add backup, restore, and update ess scripts. Handle ess in workflows update and remove container stop/removal from install ess script.
Marc Davis <marc.davis@mcoecn.org>
parents:
diff
changeset
|
112 -e SSDT_ADS_CONFIG2_ROOT_DN=$ads_config2_root_dn |
e483148f5283
Add backup, restore, and update ess scripts. Handle ess in workflows update and remove container stop/removal from install ess script.
Marc Davis <marc.davis@mcoecn.org>
parents:
diff
changeset
|
113 -e SSDT_ADS_CONFIG2_SEARCH_FILTER=$ads_config2_search_filter" |
e483148f5283
Add backup, restore, and update ess scripts. Handle ess in workflows update and remove container stop/removal from install ess script.
Marc Davis <marc.davis@mcoecn.org>
parents:
diff
changeset
|
114 fi |
e483148f5283
Add backup, restore, and update ess scripts. Handle ess in workflows update and remove container stop/removal from install ess script.
Marc Davis <marc.davis@mcoecn.org>
parents:
diff
changeset
|
115 # |
e483148f5283
Add backup, restore, and update ess scripts. Handle ess in workflows update and remove container stop/removal from install ess script.
Marc Davis <marc.davis@mcoecn.org>
parents:
diff
changeset
|
116 # |
e483148f5283
Add backup, restore, and update ess scripts. Handle ess in workflows update and remove container stop/removal from install ess script.
Marc Davis <marc.davis@mcoecn.org>
parents:
diff
changeset
|
117 if [ ! -z "$ads_config3_enabled" ]; then |
e483148f5283
Add backup, restore, and update ess scripts. Handle ess in workflows update and remove container stop/removal from install ess script.
Marc Davis <marc.davis@mcoecn.org>
parents:
diff
changeset
|
118 echo "Add Window Active Director Configuration 3" |
e483148f5283
Add backup, restore, and update ess scripts. Handle ess in workflows update and remove container stop/removal from install ess script.
Marc Davis <marc.davis@mcoecn.org>
parents:
diff
changeset
|
119 dockerRunCommand="$dockerRunCommand |
e483148f5283
Add backup, restore, and update ess scripts. Handle ess in workflows update and remove container stop/removal from install ess script.
Marc Davis <marc.davis@mcoecn.org>
parents:
diff
changeset
|
120 -e SSDT_ADS_CONFIG3_ENABLED=$ads_config3_enabled |
e483148f5283
Add backup, restore, and update ess scripts. Handle ess in workflows update and remove container stop/removal from install ess script.
Marc Davis <marc.davis@mcoecn.org>
parents:
diff
changeset
|
121 -e SSDT_ADS_CONFIG3_DOMAIN=$ads_config3_domain |
e483148f5283
Add backup, restore, and update ess scripts. Handle ess in workflows update and remove container stop/removal from install ess script.
Marc Davis <marc.davis@mcoecn.org>
parents:
diff
changeset
|
122 -e SSDT_ADS_CONFIG3_LDAP_URL=$ads_config3_ldap_url |
e483148f5283
Add backup, restore, and update ess scripts. Handle ess in workflows update and remove container stop/removal from install ess script.
Marc Davis <marc.davis@mcoecn.org>
parents:
diff
changeset
|
123 -e SSDT_ADS_CONFIG3_ROOT_DN=$ads_config3_root_dn |
e483148f5283
Add backup, restore, and update ess scripts. Handle ess in workflows update and remove container stop/removal from install ess script.
Marc Davis <marc.davis@mcoecn.org>
parents:
diff
changeset
|
124 -e SSDT_ADS_CONFIG3_SEARCH_FILTER=$ads_config3_search_filter" |
e483148f5283
Add backup, restore, and update ess scripts. Handle ess in workflows update and remove container stop/removal from install ess script.
Marc Davis <marc.davis@mcoecn.org>
parents:
diff
changeset
|
125 fi |
e483148f5283
Add backup, restore, and update ess scripts. Handle ess in workflows update and remove container stop/removal from install ess script.
Marc Davis <marc.davis@mcoecn.org>
parents:
diff
changeset
|
126 # |
e483148f5283
Add backup, restore, and update ess scripts. Handle ess in workflows update and remove container stop/removal from install ess script.
Marc Davis <marc.davis@mcoecn.org>
parents:
diff
changeset
|
127 # |
580
b6f03eb10850
add option to run applications as support instances
Marc Davis <marc.davis@mcoecn.org>
parents:
528
diff
changeset
|
128 support_instance=${support_instance:-false} |
b6f03eb10850
add option to run applications as support instances
Marc Davis <marc.davis@mcoecn.org>
parents:
528
diff
changeset
|
129 if [ "$support_instance" = "true" ]; then |
b6f03eb10850
add option to run applications as support instances
Marc Davis <marc.davis@mcoecn.org>
parents:
528
diff
changeset
|
130 echo "Setting application instance type to Support" |
b6f03eb10850
add option to run applications as support instances
Marc Davis <marc.davis@mcoecn.org>
parents:
528
diff
changeset
|
131 dockerRunCommand="$dockerRunCommand -e APPLICATION_INSTANCE_TYPE=Support" |
b6f03eb10850
add option to run applications as support instances
Marc Davis <marc.davis@mcoecn.org>
parents:
528
diff
changeset
|
132 fi |
b6f03eb10850
add option to run applications as support instances
Marc Davis <marc.davis@mcoecn.org>
parents:
528
diff
changeset
|
133 # |
b6f03eb10850
add option to run applications as support instances
Marc Davis <marc.davis@mcoecn.org>
parents:
528
diff
changeset
|
134 # |
528
e483148f5283
Add backup, restore, and update ess scripts. Handle ess in workflows update and remove container stop/removal from install ess script.
Marc Davis <marc.davis@mcoecn.org>
parents:
diff
changeset
|
135 dockerRunCommand="$dockerRunCommand -d $artifactUrl/ess-app:$appVersion" |
e483148f5283
Add backup, restore, and update ess scripts. Handle ess in workflows update and remove container stop/removal from install ess script.
Marc Davis <marc.davis@mcoecn.org>
parents:
diff
changeset
|
136 # |
e483148f5283
Add backup, restore, and update ess scripts. Handle ess in workflows update and remove container stop/removal from install ess script.
Marc Davis <marc.davis@mcoecn.org>
parents:
diff
changeset
|
137 # Execute constructed docker run command to create $entityId-ess-app container connected to db and docker network |
e483148f5283
Add backup, restore, and update ess scripts. Handle ess in workflows update and remove container stop/removal from install ess script.
Marc Davis <marc.davis@mcoecn.org>
parents:
diff
changeset
|
138 echo "Executing docker run command" |
e483148f5283
Add backup, restore, and update ess scripts. Handle ess in workflows update and remove container stop/removal from install ess script.
Marc Davis <marc.davis@mcoecn.org>
parents:
diff
changeset
|
139 $dockerRunCommand |