build rpc test container image

This commit is contained in:
zhuyasen
2023-03-25 15:18:36 +08:00
parent e06276bbff
commit 4d8e5f241d
12 changed files with 194 additions and 21 deletions

View File

@@ -3,9 +3,18 @@
dockerComposeFilePath="deployments/docker-compose"
mkdir -p ${dockerComposeFilePath}/configs
cp configs/serverNameExample.yml ${dockerComposeFilePath}/configs
if [ ! -f "${dockerComposeFilePath}/configs/serverNameExample.yml" ];then
cp configs/serverNameExample.yml ${dockerComposeFilePath}/configs
fi
# shellcheck disable=SC2164
cd ${dockerComposeFilePath}
if [ "$1"x = "stop"x ] ;then
docker-compose down
exit 0
fi
docker-compose up -d
echo "path is 'deployments/docker-compose'"