forked from ContosoBikeRental/BikeSharingSampleApp
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild-run-app.sh
36 lines (30 loc) · 976 Bytes
/
build-run-app.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
#!/bin/bash
# Script to deploy contoso bikrental services in the parent space.
# Select parent space. If space is not defined, set parent space to default.
parent_space="$1"
if [ -z "$1" ]; then
parent_space="dev"
fi
# Selecting azds namespace.
azds space select -n $parent_space
# Run all services
echo "******************************************"
echo "Starting databases: SQL, Mongo"
echo "******************************************"
pushd Databases
helm init --wait
helm install charts/databases --wait --namespace $parent_space
popd
declare -a arr=("Gateway" "bikesharingweb" "Bikes" "Billing" "Reservation" "ReservationEngine" "Users" "DevSite" "PopulateDatabase")
for i in "${arr[@]}"
do
echo "******************************************"
echo "Starting service $i"
echo "******************************************"
pushd $i
azds up -d
popd
done
echo "******************************************"
echo "BikeSharing endpoints: "
azds list-uris