-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathall-build.sh
54 lines (38 loc) · 906 Bytes
/
all-build.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
51
52
#!/usr/bin/env bash
export SAMPLE=/home/vagrant/spring-cloud-sample
function note() {
local GREEN NC
GREEN='\033[0;32m'
NC='\033[0m' # No Color
printf "\n${GREEN}$@ ${NC}\n" >&2
}
function starting_wait() {
while true
do
if [ ! -f $1 ]; then
sleep 3
else
break
fi
done
}
set -e
cd $SAMPLE/config-server
note "Starting config-server..."
mvn spring-boot:run &
starting_wait $SAMPLE/config-server"/.startup"
cd $SAMPLE/service-discovery
note "Starting service-discovery..."
mvn spring-boot:run &
cd $SAMPLE/gateway
note "Starting gateway..."
mvn spring-boot:run &
cd $SAMPLE/authorization-server
note "Starting authorization-server..."
mvn spring-boot:run &
cd $SAMPLE/turbine-stream
note "Starting turbine-stream..."
mvn spring-boot:run &
cd $SAMPLE/hystrix-dashboard
note "Starting hystrix-dashboard..."
mvn spring-boot:run &