allLikeMall/yudao-server/run.sh
root 07f352c820
All checks were successful
continuous-integration/drone/push Build is passing
更新 yudao-server/run.sh
2024-09-29 18:28:41 +08:00

16 lines
545 B
Bash

app_name='zymall'
# 定义应用版本
app_version='1.0.0'
app_repository='mt.ptzykjgs.com:8080/serve'
# 定义应用环境
#profile_active='prod'
echo '----stop container----'
docker stop ${app_name}
echo '----rm container----'
docker rm ${app_name}
#echo '----rm image----'
#docker rmi -f "${app_name}:${app_version}"
echo '----pull image----'
docker pull "${app_repository}/${app_name}:${app_version}"
echo '----start container----'
docker run -d -p 6127:6127 --name ${app_name} --restart always "${app_repository}/${app_name}:${app_version}"