200 Star 1.8K Fork 623

tanghc/torna

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
docker-restart-torna.sh 962 Bytes
一键复制 编辑 原始数据 按行查看 历史
tanghc 提交于 2年前 . update
#!/bin/sh
# 说明:停止并删除当前torna容器,并拉取最新版本镜像重启
# 保存文件名:docker-restart-torna.sh
# 运行方式:sh docker-restart-torna.sh [version]
#
# 参数version可选,不填默认为latest,推荐手动指定版本避免拉取到的latest还是老版本
# 如重启1.17.2版本:sh docker-restart-torna.sh 1.17.2
version="latest"
if [ -n "${1}" ];then
version="${1}"
fi
echo "stop torna container"
docker stop torna
echo "remove torna container"
docker rm torna
echo "pull new torna image : tanghc2020/torna:${version}"
docker pull registry.cn-hangzhou.aliyuncs.com/tanghc/torna:${version}
echo "run docker image : registry.cn-hangzhou.aliyuncs.com/tanghc/torna:${version}"
docker run --name torna --restart=always \
-e JAVA_OPTS="-server -Xms512m -Xmx512m" \
-v /etc/torna/application.properties:/torna/config/application.properties \
-d registry.cn-hangzhou.aliyuncs.com/tanghc/torna:${version}
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Java
1
https://gitee.com/durcframework/torna.git
git@gitee.com:durcframework/torna.git
durcframework
torna
torna
master

搜索帮助