forked from inspectit-labs/spring-petclinic-microservices
-
Notifications
You must be signed in to change notification settings - Fork 1
/
start_all_with_appdynamics-mac-localconfiguration.sh
executable file
·64 lines (47 loc) · 2.99 KB
/
start_all_with_appdynamics-mac-localconfiguration.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
55
56
57
58
59
60
61
62
63
64
#!/bin/sh
#usage: ./start_all_with_appdynamics.sh
#the startup scipt must be placed in the same folder than the spring petclinic microservice application
# Note that this startup script uses the spring boot profile local to load the necessary configuration for the
# config server from a local Git repository. This is meant to be used in situations where you do not have access
# to the internet.
#
# This setup expects that you have the GitHub repository https://github.com/NovaTec-APM/spring-petclinic-microservices-config cloned
# to ${user.home}/spring-petclinic-microservices-config
cd spring-petclinic-config-server/target
echo "Starting Configuration Server"
java -Dspring.profiles.active=local -javaagent:../../put-appdynamics-agent-here/javaagent.jar -Dappdynamics.agent.tierName=ConfigurationService -Dappdynamics.agent.nodeName=ConfigurationServiceNode -jar spring-petclinic-config-server-1.5.1.jar &
cd ../..
./wait-for-it-mac.sh localhost:8888 --timeout=60
cd spring-petclinic-discovery-server/target
echo "Starting Discovery Server"
java -javaagent:../../put-appdynamics-agent-here/javaagent.jar -Dappdynamics.agent.tierName=DiscoveryServer -Dappdynamics.agent.nodeName=DiscoveryServerNode -jar spring-petclinic-discovery-server-1.5.1.jar &
cd ../..
./wait-for-it-mac.sh localhost:8761 --timeout=60
open http://localhost:8761
cd spring-petclinic-customers-service/target
echo "Starting Customers Service"
java -javaagent:../../put-appdynamics-agent-here/javaagent.jar -Dappdynamics.agent.tierName=CustomerService -Dappdynamics.agent.nodeName=CustomerServiceNode -jar spring-petclinic-customers-service-1.5.1.jar &
cd ../..
./wait-for-it-mac.sh localhost:8761 --timeout=60
cd spring-petclinic-vets-service/target
echo "Starting Vets Service"
java -javaagent:../../put-appdynamics-agent-here/javaagent.jar -Dappdynamics.agent.tierName=VetsService -Dappdynamics.agent.nodeName=VetsServiceNode -jar spring-petclinic-vets-service-1.5.1.jar &
cd ../..
./wait-for-it-mac.sh localhost:8761 --timeout=60
cd spring-petclinic-visits-service/target
echo "Starting Visits Service"
java -javaagent:../../put-appdynamics-agent-here/javaagent.jar -Dappdynamics.agent.tierName=VisitsService -Dappdynamics.agent.nodeName=VisitsServiceNode -jar spring-petclinic-visits-service-1.5.1.jar &
cd ../..
./wait-for-it-mac.sh localhost:8761 --timeout=60
cd spring-petclinic-api-gateway/target
echo "Starting API Gateway"
java -javaagent:../../put-appdynamics-agent-here/javaagent.jar -Dappdynamics.agent.tierName=ApiGateway -Dappdynamics.agent.nodeName=ApiGatewayNode -jar spring-petclinic-api-gateway-1.5.1.jar &
cd ../..
./wait-for-it-mac.sh localhost:8761 --timeout=60
cd spring-petclinic-admin-server/target
echo "Starting Admin Server"
java -javaagent:../../put-appdynamics-agent-here/javaagent.jar -Dappdynamics.agent.tierName=AdminServer -Dappdynamics.agent.nodeName=AdminServerNode -jar spring-petclinic-admin-server-1.5.1.jar &
cd ../..
./wait-for-it-mac.sh localhost:8080 --timeout=240
open http://localhost:8080
echo "All Services started!"