blob: da19949e9f781dae505f2e674d9ff7ff18951166 [file] [log] [blame]
Sergio Slobodriancab0a392017-07-13 08:42:10 -04001#!/bin/bash
2
3voltha_base_dir="/cord/incubator/voltha"
4
5docker network create --driver overlay --subnet=10.0.1.0/24 --opt encrypted=true voltha_net
6docker stack deploy -c ${voltha_base_dir}/compose/docker-compose-kafka-cluster.yml kafka
7docker stack deploy -c ${voltha_base_dir}/compose/docker-compose-consul-cluster.yml consul
Sergio Slobodrian7c5e8852017-07-31 20:17:14 -04008echo "Waiting for consul to start"
9while true
10do
11 cs=`docker service ls | grep consul_consul | awk '{print $4}'`
12 if [ "$cs" == "3/3" ]; then
13 break
14 fi
15done
16sleep 10
Sergio Slobodrianbe829272017-07-17 14:45:45 -040017docker stack deploy -c ${voltha_base_dir}/compose/docker-compose-voltha-swarm.yml vcore
18docker stack deploy -c ${voltha_base_dir}/compose/docker-compose-envoy-swarm.yml voltha
Sergio Slobodriancab0a392017-07-13 08:42:10 -040019docker stack deploy -c ${voltha_base_dir}/compose/docker-compose-vcli.yml cli
20docker stack deploy -c ${voltha_base_dir}/compose/docker-compose-chameleon-swarm.yml chameleon
21docker stack deploy -c ${voltha_base_dir}/compose/docker-compose-netconf-swarm.yml netconf
sathishgb5d1c182017-07-13 14:20:19 +053022docker stack deploy -c ${voltha_base_dir}/compose/docker-compose-fluentd-cluster.yml fluentd
Sergio Slobodriancab0a392017-07-13 08:42:10 -040023docker service create -d --name tools --network voltha_net --network kafka_net --publish "4022:22" voltha/tools
24