forked from uggla/cloud_native_app
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker_services_rm.sh
More file actions
executable file
·38 lines (35 loc) · 873 Bytes
/
docker_services_rm.sh
File metadata and controls
executable file
·38 lines (35 loc) · 873 Bytes
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
#!/bin/bash
# Script to run the CNA as docker services on swarm
#
# You need to provide your Registry address here:
#REGISTRY=uggla
#REGISTRY=lab7-2.labossi.hpintelco.org:5500
#KEYSTONE=labossi.hpintelco.org
#WEB=`hostname`
#svc=`docker service ls | grep -E " rabbit "`
#if [ _"$svc" != _"" ]; then
# docker service rm rabbit
#fi
#
#svc=`docker service ls | grep -E " redis "`
#if [ _"$svc" != _"" ]; then
# docker service rm redis
#fi
#
## Launch services - Should be replaced by docker-compose v3 once available
#for a in web i b p s w w1 w2 db; do
# svc=`docker service ls | grep -E " $a "`
# if [ _"$svc" != _"" ]; then
# docker service rm $a
# fi
#done
#
#
## Check if the overlay network is available
#docker network list | grep -E " cnalan " > /dev/null 2>&1
#if [ $? -eq 0 ]; then
# docker network rm cnalan
#fi
docker stack rm cna
sleep 5
docker service ls