加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
Blog.Core.Publish.Docker.Jenkins.sh 668 Bytes
一键复制 编辑 原始数据 按行查看 历史
MandIand 提交于 2021-08-24 15:21 . fix:change port from 8081 -> 9291
dotnet restore
dotnet build
cd Blog.Core.Api
dotnet publish
echo "Successfully!!!! ^ please see the file ."
cd bin/Debug/net5.0/publish/
#rm -f appsettings.json
#\cp -rf /var/jenkins_home/workspace/SecurityConfig/Blog.Core/appsettings.json appsettings.json
#docker stop apkcontainer
#docker rm apkcontainer
#docker rmi laozhangisphi/apkimg
chmod 777 StopContainerImg.sh
./StopContainerImg.sh apkcontainer laozhangisphi/apkimg
docker build -t laozhangisphi/apkimg .
docker run --name=apkcontainer -d -v /data/blogcore/appsettings.json:/app/appsettings.json -v /data/blogcore/Log/:/app/Log -v /etc/localtime:/etc/localtime -it -p 9291:9291 laozhangisphi/apkimg
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化