[开源]制作docker镜像不依赖linux和Docker环境

dockerantdeploydockerlinuxwindowslinuxdockerlinuxdocker

 https://github.com/GoogleContainerTools/jib

 maven  gradle 

mavengradle

java

asp5.0仿googlejib

AntDeploy()

  • dockerhub

:auth

使

2使

  • vs()

  • (java)

vs

aspnet5.0webantdeploydockerlinuxweb

使

  • Visualstuido 2019

  • AntDeploy

(testimagepush)()

AntDeploy

 

AntDeploy

From
DockerFilefrom
UserName
Pwd
Http 访(dockerhub)
To
(dockerhub)
UserName
Pwd
Http 访(dockerhub)
EntryPoint
CMD  ->

dockerdocker

  • 5.05.0

  • pull

  • ()

  • EntryPointdotnet

  • dll

16:26:52|INFO|-----------------Start publish[Ver:7.30]-----------------  
16:26:52|INFO|Visual Studio Version : 16.0  
16:26:52|INFO|CurrentProjectFolder:  file://C:\Users\Administrator\source\repos\testimagepush\testimagepush#link3
16:26:52|INFO|current project Path:C:\Users\Administrator\source\repos\testimagepush\testimagepush\testimagepush.csproj  
16:26:52|INFO|dotnet publish "C:\Users\Administrator\source\repos\testimagepush\testimagepush\testimagepush.csproj" -c Release -o "C:\Users\Administrator\source\repos\testimagepush\testimagepush\bin\Release\dockerImage\publish\"
16:26:53|INFO|版权所有(C)MicrosoftCorporation。保留所有权利。
16:26:53|INFO|正在确定要还原的项目…
16:26:53|INFO|正在确定要还原的项目…
16:26:53|INFO|所有项目均是最新的,无法还原。
16:26:53|INFO|所有项目均是最新的,无法还原。
16:26:55|INFO|testimagepush->C:\Users\Administrator\source\repos\testimagepush\testimagepush\bin\Release\net5.0\testimagepush.dll
16:26:55|INFO|testimagepush->C:\Users\Administrator\source\repos\testimagepush\testimagepush\bin\Release\net5.0\testimagepush.Views.dll
16:26:55|INFO|testimagepush->C:\Users\Administrator\source\repos\testimagepush\testimagepush\bin\Release\net5.0\testimagepush.Views.dll
16:26:55|INFO|testimagepush->C:\Users\Administrator\source\repos\testimagepush\testimagepush\bin\Release\dockerImage\publish\
16:26:55|INFO|testimagepush->C:\Users\Administrator\source\repos\testimagepush\testimagepush\bin\Release\dockerImage\publish\
16:26:55|INFO|publishtarget==>file://C:\Users\Administrator\source\repos\testimagepush\testimagepush\bin\Release\dockerImage\publish#link16
16:26:55|INFO|-----------------Startpublishdockerimage-----------------
16:26:55|INFO|-----------------DeployStart-----------------
16:26:55|INFO|jib.exepush--configfile="C:\Users\Administrator\AppData\Roaming\020198643be8650696268b110a25104d_param.json"
16:26:56|INFO|Start:Pullingmanifestofbaseimagemcr.microsoft.com/dotnet/aspnet:5.0
16:26:56|INFO|callhttp:https://registry.cn-hangzhou.aliyuncs.com/v2/useproxy:127.0.0.1:1080
16:26:56|INFO|Start:[childprogress]settinguptopushlayers
16:26:57|INFO|callhttp:https://mcr.microsoft.com/v2/dotnet/aspnet/blobs/sha256:ab15cbada1ec431e6222fbf5544eee38f1ac0bc0ada4b37831a25ac991a6e522useproxy:127.0.0.1:1080
16:27:00|INFO|callhttp:https://registry.cn-hangzhou.aliyuncs.com/v2/yuzd/testimagepush/blobs/sha256:9127a318a8536208e7041347951bfd4f95257db52ee748e1d586cda0f029380b
16:27:00|INFO|callhttp:https://registry.cn-hangzhou.aliyuncs.com/v2/yuzd/testimagepush/blobs/uploads/
16:27:00|INFO|callhttp:https://registry.cn-hangzhou.aliyuncs.com/v2/yuzd/testimagepush/blobs/uploads/fd39d922-c22a-4871-b439-13a6d7c67eff?_state=3gR0LUGRZV1wpHAxrlWtg9CZt8rBXnShN4B-EYxD0g57Ik5hbWUiOiJ5dXpkL3Rlc3RpbWFnZXB1c2giLCJVVUlEIjoiZmQzOWQ5MjItYzIyYS00ODcxLWI0MzktMTNhNmQ3YzY3ZWZmIiwiT2Zmc2V0IjowLCJTdGFydGVkQXQiOiIyMDIxLTA0LTExVDA4OjI3OjAzLjA1MTA3NTgzMloifQ%3D%3D
16:27:00|INFO|Start:pushingblobsha256:9127a318a8536208e7041347951bfd4f95257db52ee748e1d586cda0f029380b[1052129]
16:27:00|INFO|Start:pullcontainerconfigurationsha256:ab15cbada1ec431e6222fbf5544eee38f1ac0bc0ada4b37831a25ac991a6e522
16:27:00|INFO|callhttp:https://registry.cn-hangzhou.aliyuncs.com/v2/yuzd/testimagepush/blobs/sha256:ff2f4c814a04afba84f03a2fd077348a964bd525c4e253e3fedb23d035f9c45a
16:27:00|INFO|End:pushingblobsha256:f7ec5a41d630a33a2d1db59b95d89d93de7ae5a619a3a8571b78457e48266eba[27139373]
16:27:00|INFO|callhttp:https://registry.cn-hangzhou.aliyuncs.com/v2/yuzd/testimagepush/blobs/uploads/fd39d922-c22a-4871-b439-13a6d7c67eff?_state=LSGtNCpNE7aaQCoZDLvXL6DJRn1PN85OFbLaPPFouRZ7Ik5hbWUiOiJ5dXpkL3Rlc3RpbWFnZXB1c2giLCJVVUlEIjoiZmQzOWQ5MjItYzIyYS00ODcxLWI0MzktMTNhNmQ3YzY3ZWZmIiwiT2Zmc2V0IjoxMDUyMTI5LCJTdGFydGVkQXQiOiIyMDIxLTA0LTExVDA4OjI3OjAzWiJ9&digest=sha256:9127a318a8536208e7041347951bfd4f95257db52ee748e1d586cda0f029380b
16:27:01|INFO|End:pushingblobsha256:ff2f4c814a04afba84f03a2fd077348a964bd525c4e253e3fedb23d035f9c45a[2719]
16:27:01|INFO|callhttp:https://registry.cn-hangzhou.aliyuncs.com/v2/yuzd/testimagepush/blobs/uploads/dc2051f5-7d7b-4622-9979-3f028fc124df?_state=ZSRwEW96U7Pu7blVT_rsRjY_UsBe02Mbjer7jCkkPz17Ik5hbWUiOiJ5dXpkL3Rlc3RpbWFnZXB1c2giLCJVVUlEIjoiZGMyMDUxZjUtN2Q3Yi00NjIyLTk5NzktM2YwMjhmYzEyNGRmIiwiT2Zmc2V0IjoyNzE5LCJTdGFydGVkQXQiOiIyMDIxLTA0LTExVDA4OjI3OjAzWiJ9&digest=sha256:ff2f4c814a04afba84f03a2fd077348a964bd525c4e253e3fedb23d035f9c45a
16:27:01|INFO|End:settinguptopushlayers
16:27:01|INFO|End:taggingwith1.0.3
16:27:03|INFO|globalpullimagecachefolder==>file://%LOCALAPPDATA%/fibdotnet#link36
16:27:03|INFO|localbuildimagecachefolder==>file://C:\Users\Administrator\source\repos\testimagepush\testimagepush\bin\Release\dockerImage\dockerImage_cache#link37
16:27:03|INFO|publishtarget==>file://C:\Users\Administrator\source\repos\testimagepush\testimagepush\bin\Release\dockerImage\publish#link38
16:27:03|INFO|-----------------DeployEnd-----------------
16:27:03|INFO|【Deploylog】==>file://C:\Users\Administrator\source\repos\testimagepush\testimagepush\bin\Release\dockerImage\publish_deploy_logs\20210411162703.log#link40


使

docker pull registry.cn-hangzhou.aliyuncs.com/yuzd/testimagepush:1.0.3

docker run -p 5000:80 --name testimagepush -d ff2


https://marketplace.visualstudio.com/items?itemName=nainaigu.AntDeployVsix

 


https://github.com/yuzd

 

dockerhubdockerhub

  • global pull image cache folder 

  • local build image cache folder 

issue


,() 

posted @   俞正东  阅读(696)  评论(0编辑  收藏  举报
编辑推荐:
· 如何编写易于单元测试的代码
· 10年+ .NET Coder 心语,封装的思维:从隐藏、稳定开始理解其本质意义
· .NET Core 中如何实现缓存的预热?
· 从 HTTP 原因短语缺失研究 HTTP/2 和 HTTP/3 的设计差异
· AI与.NET技术实操系列:向量存储与相似性搜索在 .NET 中的实现
阅读排行:
· 周边上新:园子的第一款马克杯温暖上架
· Open-Sora 2.0 重磅开源!
· 分享 3 个 .NET 开源的文件压缩处理库,助力快速实现文件压缩解压功能!
· Ollama——大语言模型本地部署的极速利器
· DeepSeek如何颠覆传统软件测试?测试工程师会被淘汰吗?
点击右上角即可分享
微信分享提示