forked from callistaenterprise/goblog
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathspringcloud.sh
executable file
·31 lines (25 loc) · 1.43 KB
/
springcloud.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
#!/bin/bash
# Config Server
cd support/config-server
./gradlew build
cd ../..
docker build -t someprefix/configserver support/config-server/
docker service rm configserver
docker service create --replicas 1 --name configserver -p 8888:8888 --network my_network --update-delay 10s --with-registry-auth --update-parallelism 1 someprefix/configserver
# Edge Server
cd support/edge-server
./gradlew clean build
cd ../..
docker build -t someprefix/edge-server support/edge-server/
docker service rm edge-server
docker service create --replicas 1 --name edge-server -p 8765:8765 --network my_network --update-delay 10s --with-registry-auth --update-parallelism 1 someprefix/edge-server
# Zipkin
docker service rm zipkin
docker service create --constraint node.role==manager --replicas 1 -p 9411:9411 --name zipkin --network my_network --update-delay 10s --with-registry-auth --update-parallelism 1 openzipkin/zipkin
# Hystrix Dashboard
docker build -t someprefix/hystrix support/monitor-dashboard
docker service rm hystrix
docker service create --constraint node.role==manager --replicas 1 -p 7979:7979 --name hystrix --network my_network --update-delay 10s --with-registry-auth --update-parallelism 1 someprefix/hystrix
# Turbine
docker service rm turbine
docker service create --constraint node.role==manager --replicas 1 -p 8282:8282 --name turbine --network my_network --update-delay 10s --with-registry-auth --update-parallelism 1 eriklupander/turbine