-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrun.sh
More file actions
executable file
·25 lines (22 loc) · 830 Bytes
/
run.sh
File metadata and controls
executable file
·25 lines (22 loc) · 830 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
#!/usr/bin/env bash
### BEGIN ###
# Author: idevz
# Since: 16:27:46 2018/12/24
# Description: start the http-mesh demo
# run ./run.sh r
# run ./run.sh c
#
# Environment variables that control this script:
#
### END ###
set -e
BASE_DIR=$(pwd)
if [ ${1} = 'r' ]; then
docker-compose -f ${BASE_DIR}/docker-compose/http-mesh-client.yaml down --remove-orphans
docker-compose -f ${BASE_DIR}/docker-compose/http-mesh-server.yaml down --remove-orphans
docker-compose -f ${BASE_DIR}/docker-compose/http-mesh-server.yaml up -d
docker-compose -f ${BASE_DIR}/docker-compose/http-mesh-client.yaml up -d
elif [ ${1} = 'c' ]; then
docker-compose -f ${BASE_DIR}/docker-compose/http-mesh-client.yaml down --remove-orphans
docker-compose -f ${BASE_DIR}/docker-compose/http-mesh-server.yaml down --remove-orphans
fi