-
Notifications
You must be signed in to change notification settings - Fork 163
/
run_locally.sh
executable file
·54 lines (44 loc) · 1.87 KB
/
run_locally.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
53
54
#!/bin/sh
while getopts e: option
do
case "${option}"
in
e) DO_E2E=${OPTARG};;
esac
done
printf "\n####### RESTFUL-BOOKER-PLATFORM #######
#### ####
#### STARTING APPLICATION... ####
#### ####
#######################################\n\n"
trap "kill 0" EXIT
java -jar -Dspring.profiles.active=dev auth/target/restful-booker-platform-auth-*.jar > auth.log &
java -jar -Dspring.profiles.active=dev booking/target/restful-booker-platform-booking-*.jar > booking.log &
java -jar -Dspring.profiles.active=dev room/target/restful-booker-platform-room-*.jar > room.log &
java -jar -Dspring.profiles.active=dev report/target/restful-booker-platform-report-*.jar > report.log &
java -jar -Dspring.profiles.active=dev branding/target/restful-booker-platform-branding-*.jar > branding.log &
java -jar -Dspring.profiles.active=dev message/target/restful-booker-platform-message-*.jar > message.log &
java -jar -Dspring.profiles.active=dev assets/api/target/restful-booker-platform-assets-*.jar > ui.log &
java -jar proxy/target/restful-booker-platform-local-proxy-*.jar > proxy.log &
node .utilities/monitor/local_monitor.js
printf "\n\n####### RESTFUL-BOOKER-PLATFORM #######
#### ####
#### RUNNING E2E CHECKS ####
#### ####
#######################################\n"
if [ "$DO_E2E" = "true" ]; then
cd end-to-end-tests
mvn clean test
else
printf "\n SKIPPING E2E TESTS
Add -e true argument to run E2E tests\n"
fi
printf "\n####### RESTFUL-BOOKER-PLATFORM #######
#### ####
#### APPLICATION READY ####
#### ####
#### Available at: ####
#### http://localhost:8080 ####
#### ####
#######################################"
wait