您现在的位置是:热点 >>正文
云计算核心技术Docker教程:Docker Hub覆盖构建和定制构建阶段挂钩
热点88966人已围观
简介...
Docker Hub允许您 在使用钩子的自动构建和测试过程中覆盖和自定义build,test和push云计命令。例如,您可以使用构建挂钩来设置仅在构建过程中使用的构建参数。(您还可以设置自定义构建阶段挂钩,算核以在这些命令之间执行操作。)
请谨慎使用这些挂钩。这些挂钩文件的内容替换了基本docker命令,因此您必须在挂心技钩中包含类似的build,test或push命令,否则自动过程将无法完成。
要覆盖这些阶段,请hooks在源术D代码存储库中创建一个与Dockerfile位于同一目录级别的文件夹。创建一个名为hooks/build,ochooks/test或的文件 ,hooks/push并包含构建器进程可以执行的命令,例如docker和bkeash命令(以适当地前缀#!/bin/bash)。
这些挂钩将在基于Ubuntu的发行版Amazonr教 Linux 2的实例上运行,该实例包括Perl和Python等解释器以及诸如git或的实用程序curl程:。
定制构建阶段挂钩
您可以通过创建钩子在构建过程的各个阶段之间运行自定义命令。挂钩允许您为自动构建和自动测试过Do程提供额外的说明。
hooks在源代码存储库中创建一个名为Dockerfile的目录。将定义挂钩的文件放在该ck文件夹中。挂钩文件可以同时包含docker命令和bash命令,只要它们以适当的前缀即可#!/bin/basher。构建器在每个步骤之前和之后执行文件中的命令。
以下挂钩可用:
hooks/post_checkout
ho Hoks/pre_build
hooks/post_build
hooks/pre_test
hooks/pubost_test
hooks/pre_push(仅在执行构建规则或自动构建时使用)
hooks/post_pus覆盖h(仅在执行构建规则或自动构建时使用)
Tags:
相关文章
标签: 保时捷 祖文豪森 魏斯阿赫 迈克尔·莱特斯
热点云梦级7月6日云梦级消息,据德国《商报》报道,知情人士透露,保时捷正考虑在其位于祖文豪森(Zuffenhausen)的工厂再裁减多达 4000 个岗位。此前该公司已同意削减 3900 个岗位。 报道称...
【热点】
阅读更多软银豪掷225亿美元加码OpenAI,AI音乐与超级融资计划全面提速
热点在人工智能竞赛进入深水区的关键时刻,软银集团再次以惊人的资本魄力押注未来。近日,软银董事会正式批准向OpenAI追加225亿美元(约合1600亿元人民币)投资,使其对这家AI巨头的总投资额飙升至325...
【热点】
阅读更多云服务商Fastly故障致数千网站瘫痪,目前已恢复
热点外媒报道美国云计算公司Fastly于8日出现长达1小时的大范围服务故障,全球全球数千家政府、新闻和社交媒体网站因此无法登陆浏览。 据悉,包括Reddit、Amazon、CNN、PayPal、Spoti...
【热点】
阅读更多
热门文章
最新文章
友情链接
- 标签: 康师傅
- https://www.samen-maier.at/search/小旋风万能蜘蛛池【tg:seogoogle987】,L0c
- https://www.pmindia.gov.in/en/?s=小旋风万能蜘蛛池【tg:seogoogle987】,MK3
- https://search.danawa.com/dsearch.php?query=小旋风万能蜘蛛池【tg:seogoogle987】VMx
- https://www.wattpad.com/search/小旋风万能蜘蛛池【tg:seogoogle987】LVm
- https://www.mynextmove.org/find/search?s=小旋风万能蜘蛛池【tg:seogoogle987】,ULy
- https://www.revere.org/search?action=SEARCH&q=小旋风万能蜘蛛池【tg:seogoogle987】,K4w
- https://www.solerpalau.com/en-en/catalogsearch/result/?q=小旋风万能蜘蛛池【tg:seogoogle987】,x9Z
- https://www.rotherham.gov.uk/site-search/results/?q=小旋风万能蜘蛛池【tg:seogoogle987】,Eed
- https://www.wilsonart.com/catalogsearch/result/?action=CHECK&q=小旋风万能蜘蛛池【tg:seogoogle987】,O4e
- https://store.line.me/search/sticker/ja?q=小旋风万能蜘蛛池【tg:seogoogle987】Hbr
- https://hsmoa.com/search?query=小旋风万能蜘蛛池【tg:seogoogle987】Car
- https://www.abbreviations.com/小旋风万能蜘蛛池【tg:seogoogle987】cK1
- https://wydden.com/?ID=r8w9WMSKWkOcmiaFWaUv0dzMdqZWfKtF&s=小旋风万能蜘蛛池【tg:seogoogle987】,aVL
- https://www.roberthalf.com/us/en/jobs/all/小旋风万能蜘蛛池【tg:seogoogle987】SRl
- https://www.teamlab.art/it/?submit=小旋风万能蜘蛛池【tg:seogoogle987】,rwr
- https://www.totolink.vn/search/小旋风万能蜘蛛池【tg:seogoogle987】,H1O
- https://www.thealexandrian.net/?s=小旋风万能蜘蛛池【tg:seogoogle987】,aRU
- https://yscc1986.net/search/小旋风万能蜘蛛池【tg:seogoogle987】xQt
- https://www.southmeadows.co.uk/2019/07/?s=小旋风万能蜘蛛池【tg:seogoogle987】,s4M
- https://www.mesec.cz/vyhledavani/?qs=小旋风万能蜘蛛池【tg:seogoogle987】,Uoi
- https://www.vfw.org/search-results?q=小旋风万能蜘蛛池【tg:seogoogle987】,KTs
- https://www.thedp.com/page/search?q=小旋风万能蜘蛛池【tg:seogoogle987】,LNl
- https://www.spoiledsweetboutique.com/search/小旋风万能蜘蛛池【tg:seogoogle987】,Fdk
- https://www.polliwogs.com/search/小旋风万能蜘蛛池【tg:seogoogle987】,4AK
- https://www.springfieldlibrary.org/library/?s=小旋风万能蜘蛛池【tg:seogoogle987】,sAr
- https://www.qylaws.com/search/小旋风万能蜘蛛池【tg:seogoogle987】,4mf
- https://www.target.com/s?searchTerm=小旋风万能蜘蛛池【tg:seogoogle987】,25z
- https://www.ushmm.org/search/results/?ID=8s0587Oi8UTv74zPPM4fuhwjNpe2hsEE&q=小旋风万能蜘蛛池【tg:seogoogle987】,SS0
- https://www.rea.govt.nz/search?searchterm=小旋风万能蜘蛛池【tg:seogoogle987】,VvA
- https://www.londontheatredirect.com/search/小旋风万能蜘蛛池【tg:seogoogle987】,fAz
- https://www.unclefossil.com/search/小旋风万能蜘蛛池【tg:seogoogle987】,yoR
- https://www.rockngem.com/?action=CHECK&s=小旋风万能蜘蛛池【tg:seogoogle987】,sz1
- https://www.goodreads.com/quotes/tag/小旋风万能蜘蛛池【tg:seogoogle987】oje
- https://www.paspaley.com/catalogsearch/result/?action=QUERY&q=小旋风万能蜘蛛池【tg:seogoogle987】,dQk
- https://www.rollingstone.it/?ID=DVMeu3AlmzZE1cuJ2FmgmO5TSCQRb3yh&s=小旋风万能蜘蛛池【tg:seogoogle987】,0nS
- https://www.kores.com/?s=小旋风万能蜘蛛池【tg:seogoogle987】,vEz
- https://www.schenckprocess.com/search?q=小旋风万能蜘蛛池【tg:seogoogle987】,D87
- https://www.whatsonstage.com/search?cat=64&term=小旋风万能蜘蛛池【tg:seogoogle987】,m7y
- https://www.mexperience.com/?T=1686132112324&s=小旋风万能蜘蛛池【tg:seogoogle987】,Qg7
- https://www.shacknews.com/editorial-search?q=小旋风万能蜘蛛池【tg:seogoogle987】,Ae0
- https://www.roberthalf.com/us/en/jobs/all/小旋风万能蜘蛛池【tg:seogoogle987】z4u
- https://www.youthforum.org/search-results?cx=4f5236218ab5e8ef9&ie=UTF-8&q=小旋风万能蜘蛛池【tg:seogoogle987】,p6x
- https://www.writingforward.com/?action=SEARCH&s=小旋风万能蜘蛛池【tg:seogoogle987】,k39
- https://www.otakuninjahero.com/en/search/小旋风万能蜘蛛池【tg:seogoogle987】,B9R
- https://www.impactpool.org/search/?type=79&q=小旋风万能蜘蛛池【tg:seogoogle987】PNd
- https://www.ons.gov.uk/search?q=小旋风万能蜘蛛池【tg:seogoogle987】,PbH
- https://www.skicheck.at/en/?action=CHECK&s=小旋风万能蜘蛛池【tg:seogoogle987】,ygw
- https://www.mdbg.net/chinese/dictionary?page=worddict&wdrst=0&wdqb=小旋风万能蜘蛛池【tg:seogoogle987】,A9m
- https://www.metaltix.com/?view=tours&filter=search&q=小旋风万能蜘蛛池【tg:seogoogle987】,YRe
- https://www.repetto.jp/item/search?action=QUERY&q=小旋风万能蜘蛛池【tg:seogoogle987】,KZi