This repository was archived by the owner on Nov 21, 2022. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +47
-0
lines changed Expand file tree Collapse file tree 2 files changed +47
-0
lines changed Original file line number Diff line number Diff line change 1+ #! /bin/bash
2+
3+ APP_CONF=conf/sarjitsu.conf
4+
5+ source $APP_CONF
6+
7+ log (){
8+ echo -e " [$( date +' %D %H:%M:%S %Z' ) ] - $* "
9+ }
10+
11+ log " Attempting to start: $METRICSTORE_CONTAINER_ID "
12+ docker start $METRICSTORE_CONTAINER_ID
13+
14+ log " Attempting to start: $DATASOURCE_CONTAINER_ID "
15+ docker start $DATASOURCE_CONTAINER_ID
16+
17+ log " Attempting to start: $FRONTEND_CONTAINER_ID "
18+ docker start $FRONTEND_CONTAINER_ID
19+
20+ log " Attempting to start: $MIDDLEWARE_CONTAINER_ID "
21+ docker start $MIDDLEWARE_CONTAINER_ID
22+
23+ log " Attempting to start: $BACKEND_CONTAINER_ID "
24+ docker start $BACKEND_CONTAINER_ID
Original file line number Diff line number Diff line change 1+ #! /bin/bash
2+
3+ APP_CONF=conf/sarjitsu.conf
4+
5+ source $APP_CONF
6+
7+ log (){
8+ echo -e " [$( date +' %D %H:%M:%S %Z' ) ] - $* "
9+ }
10+
11+ log " Attempting to stop backend"
12+ docker stop $BACKEND_CONTAINER_ID
13+ log " Attempting to stop middleware"
14+ docker stop $MIDDLEWARE_CONTAINER_ID
15+
16+ CLEAN_IDS=$( docker ps | grep -e $FRONTEND_CONTAINER_ID \
17+ -e $METRICSTORE_CONTAINER_ID \
18+ -e $DATASOURCE_CONTAINER_ID \
19+ | awk -F' ' ' {print $1}' )
20+
21+ log " Attempting to stop: [$FRONTEND_CONTAINER_ID $METRICSTORE_CONTAINER_ID $DATASOURCE_CONTAINER_ID ]"
22+
23+ docker stop $CLEAN_IDS
You can’t perform that action at this time.
0 commit comments