-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrun.sh
More file actions
15 lines (13 loc) · 754 Bytes
/
run.sh
File metadata and controls
15 lines (13 loc) · 754 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#!/bin/sh
getPort() {
echo $1 | cut -d : -f 3 | xargs basename
}
echo "********************************************************"
echo "Waiting for the eureka server to start on port $(getPort $EUREKASERVER_PORT)"
echo "********************************************************"
while ! `nc -z eurekaserver 8761`; do sleep 3; done
echo "******* Eureka Server has started"
echo "********************************************************"
echo "Starting Configuration Service with Eureka Endpoint: $EUREKASERVER_URI";
echo "********************************************************"
java -Djava.security.egd=file:/dev/./urandom -Deureka.client.serviceUrl.defaultZone=$EUREKASERVER_URI -jar /usr/local/configserver/configurationserver-0.0.1-SNAPSHOT.jar