-
Notifications
You must be signed in to change notification settings - Fork 19
/
Copy pathdeploy.sh
executable file
·37 lines (32 loc) · 1022 Bytes
/
deploy.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
#!/bin/bash
#####################################################################################################
# Deploy all Docker containers to a local Docker compose network, and run the SPA locally if required
#####################################################################################################
#
# Ensure that we are in the folder containing this script
#
cd "$(dirname "${BASH_SOURCE[0]}")"
#
# First check prerequisites
#
if [ ! -f './license.json' ]; then
echo 'Please provide a license.json file in the root folder in order to deploy the system'
exit 1
fi
#
# Get the OAuth Agent and OAuth Proxy arguments provided
#
OAUTH_AGENT="$1"
OAUTH_PROXY="$2"
#
# Run a more complex deployment for the financial-grade scenario
#
if [ "$OAUTH_AGENT" == 'FINANCIAL' ]; then
./deployments/financial/deploy.sh $OAUTH_AGENT $OAUTH_PROXY
else
./deployments/standard/deploy.sh $OAUTH_AGENT $OAUTH_PROXY
fi
if [ $? -ne 0 ]; then
echo 'Problem encountered building deployment resources'
exit
fi