-
Notifications
You must be signed in to change notification settings - Fork 0
/
buildAll.sh
executable file
·50 lines (40 loc) · 1.25 KB
/
buildAll.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
38
39
40
41
42
43
44
45
46
47
48
49
50
cd daytrader-account-service
mvn clean package
cd ../daytrader-frontend-service
mvn clean package
cd ../daytrader-holding-service
mvn clean package
cd ../daytrader-order-service
mvn clean package
cd ../daytrader-quote-service
mvn clean package
NETWORK_NAME=daytrader
VOLUME_NAME_ACCOUNTS=daytrader-db2data-accounts
VOLUME_NAME_HOLDINGS=daytrader-db2data-holdings
VOLUME_NAME_ORDERS=daytrader-db2data-orders
VOLUME_NAME_QUOTES=daytrader-db2data-quotes
docker network inspect $NETWORK_NAME
if [ $? == 1 ]; then
echo "Creating network \"$NETWORK_NAME\""
docker network create $NETWORK_NAME
fi
docker volume inspect $VOLUME_NAME_ACCOUNTS
if [ $? == 1 ]; then
echo "Creating volume \"$VOLUME_NAME_ACCOUNTS\""
docker volume create $VOLUME_NAME_ACCOUNTS
fi
docker volume inspect $VOLUME_NAME_HOLDINGS
if [ $? == 1 ]; then
echo "Creating volume \"$VOLUME_NAME_HOLDINGS\""
docker volume create $VOLUME_NAME_HOLDINGS
fi
docker volume inspect $VOLUME_NAME_ORDERS
if [ $? == 1 ]; then
echo "Creating volume \"$VOLUME_NAME_ORDERS\""
docker volume create $VOLUME_NAME_ORDERS
fi
docker volume inspect $VOLUME_NAME_QUOTES
if [ $? == 1 ]; then
echo "Creating volume \"$VOLUME_NAME_QUOTES\""
docker volume create $VOLUME_NAME_QUOTES
fi