更新 ludu-module-datacenter/ludu-module-datacenter-biz/run.sh
All checks were successful
continuous-integration/drone Build is passing
All checks were successful
continuous-integration/drone Build is passing
This commit is contained in:
parent
a2999aaa9d
commit
7493fb956b
@ -2,14 +2,15 @@ app_name='ludu-module-datacenter'
|
||||
# 定义应用版本
|
||||
app_version='1.0.0'
|
||||
# 定义应用环境
|
||||
# 打包编译docker镜像
|
||||
echo '----build image----'
|
||||
docker build -f Dockerfile -t ${app_name}:${app_version} .
|
||||
|
||||
echo '----stop container----'
|
||||
docker stop ${app_name}
|
||||
echo '----rm container----'
|
||||
docker rm ${app_name}
|
||||
echo '----rmi none image----'
|
||||
docker rmi ${app_name}:${app_version}
|
||||
# 打包编译docker镜像
|
||||
echo '----build image----'
|
||||
docker build -f Dockerfile -t ${app_name}:${app_version} .
|
||||
echo '----start container----'
|
||||
docker run -d -p 48092:48092 --name ${app_name} --restart always ${app_name}:${app_version}
|
Loading…
Reference in New Issue
Block a user