zoukankan      html  css  js  c++  java
  • [开源]制作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:UsersAdministratorsourcerepostestimagepushtestimagepush#link3
    16:26:52|INFO|current project Path:C:UsersAdministratorsourcerepostestimagepushtestimagepushtestimagepush.csproj
    16:26:52|INFO|dotnet publish "C:UsersAdministratorsourcerepostestimagepushtestimagepushtestimagepush.csproj" -c Release -o "C:UsersAdministratorsourcerepostestimagepushtestimagepushbinReleasedockerImagepublish"
    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:UsersAdministratorsourcerepostestimagepushtestimagepushbinReleasenet5.0testimagepush.dll
    16:26:55|INFO|testimagepush->C:UsersAdministratorsourcerepostestimagepushtestimagepushbinReleasenet5.0testimagepush.Views.dll
    16:26:55|INFO|testimagepush->C:UsersAdministratorsourcerepostestimagepushtestimagepushbinReleasenet5.0testimagepush.Views.dll
    16:26:55|INFO|testimagepush->C:UsersAdministratorsourcerepostestimagepushtestimagepushbinReleasedockerImagepublish
    16:26:55|INFO|testimagepush->C:UsersAdministratorsourcerepostestimagepushtestimagepushbinReleasedockerImagepublish
    16:26:55|INFO|publishtarget==>file://C:UsersAdministratorsourcerepostestimagepushtestimagepushbinReleasedockerImagepublish#link16
    16:26:55|INFO|-----------------Startpublishdockerimage-----------------
    16:26:55|INFO|-----------------DeployStart-----------------
    16:26:55|INFO|jib.exepush--configfile="C:UsersAdministratorAppDataRoaming020198643be8650696268b110a25104d_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:UsersAdministratorsourcerepostestimagepushtestimagepushbinReleasedockerImagedockerImage_cache#link37
    16:27:03|INFO|publishtarget==>file://C:UsersAdministratorsourcerepostestimagepushtestimagepushbinReleasedockerImagepublish#link38
    16:27:03|INFO|-----------------DeployEnd-----------------
    16:27:03|INFO|Deploylog==>file://C:UsersAdministratorsourcerepostestimagepushtestimagepushbinReleasedockerImagepublish_deploy_logs20210411162703.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


    ,() 


    如果您觉得阅读本文对您有帮助,请点一下“推荐”按钮,您的“推荐”将是我最大的写作动力!欢迎各位转载,转载文章之后须在文章页面明显位置给出作者和原文连接,谢谢。
  • 相关阅读:
    mysql-Invalid use of group function-聚合函数不能直接使用在where后面-使用exists,外查询与子查询应条件关联
    python-数据库之pymysql模块(连接对象-游标对象-执行-获取值或者提交事务)
    python作业-99乘法表作业,注意制表符合print结束符以及外层和里层怎么确定的,以及闰年
    python学习笔记-if_while_for_break_continue
    python-python中的Debug大法
    python-常用的几种格式化方法
    python学习一周总结
    python学习笔记-列表,字典,以及函数返回值
    python-注释,变量命名和规范笔记
    OpenJudge 求重要逆序对数
  • 原文地址:https://www.cnblogs.com/yudongdong/p/14674782.html
Copyright © 2011-2022 走看看