Sergio Slobodrian | cab0a39 | 2017-07-13 08:42:10 -0400 | [diff] [blame] | 1 | #!/bin/bash |
| 2 | |
| 3 | voltha_base_dir="/cord/incubator/voltha" |
| 4 | |
| 5 | docker network create --driver overlay --subnet=10.0.1.0/24 --opt encrypted=true voltha_net |
| 6 | docker stack deploy -c ${voltha_base_dir}/compose/docker-compose-kafka-cluster.yml kafka |
| 7 | docker stack deploy -c ${voltha_base_dir}/compose/docker-compose-consul-cluster.yml consul |
Sergio Slobodrian | 7c5e885 | 2017-07-31 20:17:14 -0400 | [diff] [blame] | 8 | echo "Waiting for consul to start" |
| 9 | while true |
| 10 | do |
| 11 | cs=`docker service ls | grep consul_consul | awk '{print $4}'` |
| 12 | if [ "$cs" == "3/3" ]; then |
| 13 | break |
| 14 | fi |
| 15 | done |
| 16 | sleep 10 |
Sergio Slobodrian | be82927 | 2017-07-17 14:45:45 -0400 | [diff] [blame] | 17 | docker stack deploy -c ${voltha_base_dir}/compose/docker-compose-voltha-swarm.yml vcore |
| 18 | docker stack deploy -c ${voltha_base_dir}/compose/docker-compose-envoy-swarm.yml voltha |
Sergio Slobodrian | cab0a39 | 2017-07-13 08:42:10 -0400 | [diff] [blame] | 19 | docker stack deploy -c ${voltha_base_dir}/compose/docker-compose-vcli.yml cli |
| 20 | docker stack deploy -c ${voltha_base_dir}/compose/docker-compose-chameleon-swarm.yml chameleon |
| 21 | docker stack deploy -c ${voltha_base_dir}/compose/docker-compose-netconf-swarm.yml netconf |
sathishg | b5d1c18 | 2017-07-13 14:20:19 +0530 | [diff] [blame] | 22 | docker stack deploy -c ${voltha_base_dir}/compose/docker-compose-fluentd-cluster.yml fluentd |
Sergio Slobodrian | cab0a39 | 2017-07-13 08:42:10 -0400 | [diff] [blame] | 23 | docker service create -d --name tools --network voltha_net --network kafka_net --publish "4022:22" voltha/tools |
| 24 | |