-
Notifications
You must be signed in to change notification settings - Fork 0
/
stop-containers.sh
executable file
·39 lines (29 loc) · 1.17 KB
/
stop-containers.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
32
33
34
35
36
37
38
#!/bin/sh
# Cassandra variables
CASSANDRA_CONTAINER_NAME=minopt-cassandra
# Address variables
ADDRESS_CONTAINER_NAME=minopt-address-service
# Person variables
PERSON_CONTAINER_NAME=minopt-person-service
# Profile variables
PROFILE_CONTAINER_NAME=minopt-profile-service
# Rest variables
REST_CONTAINER_NAME=minopt-rest-service
############################################################################
# Stop and remove cassandra container
docker stop $CASSANDRA_CONTAINER_NAME 2>/dev/null
docker rm $CASSANDRA_CONTAINER_NAME 2>/dev/null
############################################################################
# Stop and remove profile service
docker stop $PROFILE_CONTAINER_NAME 2>/dev/null
docker rm $PROFILE_CONTAINER_NAME 2>/dev/null
# Stop and remove address service
docker stop $ADDRESS_CONTAINER_NAME 2>/dev/null
docker rm $ADDRESS_CONTAINER_NAME 2>/dev/null
# Stop and remove person service
docker stop $PERSON_CONTAINER_NAME 2>/dev/null
docker rm $PERSON_CONTAINER_NAME 2>/dev/null
############################################################################
# Stop and remove rest service
docker stop $REST_CONTAINER_NAME 2>/dev/null
docker rm $REST_CONTAINER_NAME 2>/dev/null