更新 yudao-server/run.sh
This commit is contained in:
parent
ef82a0d3f0
commit
4eb4515983
@ -1,16 +1,16 @@
|
|||||||
|
#!/bin/bash
|
||||||
app_name='zymall'
|
app_name='zymall'
|
||||||
# 定义应用版本
|
# 定义应用版本
|
||||||
app_version='1.0.0'
|
app_version='1.0.0'
|
||||||
app_repository='mt.ptzykjgs.com:8080/serve'
|
app_repository='mt.ptzykjgs.com:8080/serve'
|
||||||
# 定义应用环境
|
# 定义应用环境
|
||||||
#profile_active='prod'
|
echo '----pull image----'
|
||||||
|
docker pull "${app_repository}/${app_name}:${app_version}"
|
||||||
echo '----stop container----'
|
echo '----stop container----'
|
||||||
docker stop ${app_name}
|
docker stop ${app_name}
|
||||||
echo '----rm container----'
|
echo '----rm container----'
|
||||||
docker rm ${app_name}
|
docker rm ${app_name}
|
||||||
#echo '----rm image----'
|
#echo '----rm image----'
|
||||||
#docker rmi -f "${app_name}:${app_version}"
|
#docker rmi -f "${app_name}:${app_version}"
|
||||||
echo '----pull image----'
|
|
||||||
docker pull "${app_repository}/${app_name}:${app_version}"
|
|
||||||
echo '----start container----'
|
echo '----start container----'
|
||||||
docker run -d -p 6127:6127 --name ${app_name} --restart always "${app_repository}/${app_name}:${app_version}"
|
docker run -d -p 6127:6127 --name ${app_name} --restart always "${app_repository}/${app_name}:${app_version}"
|
Loading…
Reference in New Issue
Block a user