当前位置: 首页 > news >正文

宜宾 网站建设网络推广外包内容

宜宾 网站建设,网络推广外包内容,阿里妈妈 该网站的域名已经被其他人绑定,怎么加入政府采购电子卖场极狐GitLab 是 GitLab 在中国的发行版,专门面向中国程序员和企业提供企业级一体化 DevOps 平台,用来帮助用户实现需求管理、源代码托管、CI/CD、安全合规,而且所有的操作都是在一个平台上进行,省事省心省钱。可以一键安装极狐GitL…

极狐GitLab 是 GitLab 在中国的发行版,专门面向中国程序员和企业提供企业级一体化 DevOps 平台,用来帮助用户实现需求管理、源代码托管、CI/CD、安全合规,而且所有的操作都是在一个平台上进行,省事省心省钱。可以一键安装极狐GitLab,详情可以参考极狐GitLab 下载安装官网。

GitLab 中文版学习资料

  • 驭码CodeRider 官网:https://coderider.gitlab.cn/
  • GitLab 中文版官网:https://gitlab.cn
  • GitLab 中文文档:https://docs.gitlab.cn
  • GitLab 中文下载安装:https://gitlab.cn/install

azure 有自己的容器镜像仓库服务 acr(azure container registry)。用户可以构建容器镜像之后推送到 acr 中。当然,还可以直接借助极狐GitLab CI/CD 实现容器镜像构建和推送的自动化。下面演示如何使用极狐GitLab CI/CD 构建容器镜像并自动推送到 acr 中。

创建 ACR 服务


首先,需要在 azure 上创建一个 acr 服务。创建成功之后,可以看到对应的信息:

在这里插入图片描述

镜像仓库的登录地址为jihugitlab.azurecr.cn。点击页面上的 Push an Image 可以看到右侧的登录方法:

az acr login --name JiHuGitLab
Uppercase characters are detected in the registry name. When using its server url in docker commands, to avoid authentication errors, use all lowercase.
Login Succeeded

之后就可以使用 docker pull、push等命令了:

docker pull mcr.microsoft.com/mcr/hello-world
docker tag mcr.microsoft.com/mcr/hello-world jihugitlab.azurecr.cn/samples/hello-world

如果要使用 docker login的方式登录 acr,需要在 Access Key 中找到对应的用户名和密码:

在这里插入图片描述

同样可以登录成功:

docker login jihugitlab.azurecr.cn
Username: JiHuGitLab
Password:
WARNING! Your password will be stored unencrypted in /root/.docker/config.json.
Configure a credential helper to remove this warning. See
https://docs.docker.com/engine/reference/commandline/login/#credentials-storeLogin Succeeded

和极狐GitLab CI/CD 集成


一般来讲,在极狐GitLab CI/CD 中构建容器镜像的 .gitlab-ci.yml文件内容如下:
build:image: docker:lateststage: buildservices:- docker:20.10.7-dindscript:- docker login -u "$CI_REGISTRY_USER" -p "$CI_REGISTRY_PASSWORD" $CI_REGISTRY- docker build -t $CI_REGISTRY_IMAGE:1.0.0 .- docker push $CI_REGISTRY_IMAGE:1.0.0

只需要将环境变量 CI_REGISTRY_USERCI_REGISTRY_PASSWORDCI_REGISTRY修改为 acr 中的数值即可。也就是将这些变量都以环境变量的形式存储到极狐GitLab CI/CD 变量中(项目 --> 设置 --> CI/CD --> 变量):

在这里插入图片描述

因此,.gitlab-ci.yml文件中的内容如下:

build:image: docker:lateststage: buildservices:- docker:20.10.7-dindtags:- gitlabscript:- docker login -u "$ACR_REGISTRY_USER" -p "$ACR_REGISTRY_PASSWORD" $ACR_REGISTRY- docker build -t $ACR_REGISTRY_IMAGE:1.0.0 .- docker push $ACR_REGISTRY_IMAGE:1.0.0

出发 CI/CD 流水线之后,可以查看构建结果:

在这里插入图片描述

镜像构建成功,并且推送到了 acr 中,可以在 acr 中查看。在 acr 的 repositories 中看到推送成功的镜像:

在这里插入图片描述

高阶体验,用 CI/CD Component 简化构建过程


为了提高 CI/CD 流水线的复用性、易用性,极狐GitLab 从 16.0 引入了 component 功能,16.1 引入了 catalog 功能。对于这两个功能的详细介绍可以参考过往的技术文章极狐GitLab CI/CD Component & Catalog 功能揭秘。


对于上面的流程,可以采用直接引用 component 的方式来简化 CI/CD 流水线的构建。在极狐GitLab SaaS(JihuLab.com)上点击搜索或转到 --> 探索 --> CI/CD 目录,可以看到已经发布的 CI/CD Component:

在这里插入图片描述

第一个 docker-image-build就是构建容器镜像,并将其推送到镜像仓库的 component:

在这里插入图片描述

Component 的实际内容如下:

spec:inputs:stage:default: testimage:default: docker:20.10.7-dindimage_tag:default: 1.0.0tags:default: jh-gitlab---
component-job-build-image:image: $[[ inputs.image ]]stage: $[[ inputs.stage ]]tags:- $[[ inputs.tags ]]script:- docker login -u "$ACR_REGISTRY_USER" -p "$ACR_REGISTRY_PASSWORD" $ACR_REGISTRY- docker build -t $ACR_REGISTRY_IMAGE:$[[ inputs.image_tag ]] .- docker push $ACR_REGISTRY_IMAGE:$[[ inputs.image_tag ]]

在项目中的引用方式为:

include:  - component: jihulab.com/jh-xiaomage-devops/docker-image-build/docker-image-build@5.0.0inputs:      stage: build      image: docker:20.10.7-dind      tags: gitlabimage_tag: 2.0.0

然后触发流水线,直接查看构建结果:

在这里插入图片描述

然后在 acr 上查看 tag 为 2.0.0 的镜像是否被推送过去:

在这里插入图片描述

2.0.0的镜像已经存在于 acr 中了,说明引用 component 将镜像构建并推送成功。


文章转载自:
http://dinncofantastically.zfyr.cn
http://dinnconecrose.zfyr.cn
http://dinncoforborne.zfyr.cn
http://dinncoortanique.zfyr.cn
http://dinncoflq.zfyr.cn
http://dinncorepentantly.zfyr.cn
http://dinncosurfboard.zfyr.cn
http://dinncoelitism.zfyr.cn
http://dinncounio.zfyr.cn
http://dinncodecarboxylate.zfyr.cn
http://dinncopinfeather.zfyr.cn
http://dinncocataclysmic.zfyr.cn
http://dinncocybele.zfyr.cn
http://dinncosemischolastic.zfyr.cn
http://dinncoclamber.zfyr.cn
http://dinncoegomania.zfyr.cn
http://dinncopostcolonial.zfyr.cn
http://dinncothroughout.zfyr.cn
http://dinncophotology.zfyr.cn
http://dinncocopen.zfyr.cn
http://dinncoburgee.zfyr.cn
http://dinncooutride.zfyr.cn
http://dinncoramequin.zfyr.cn
http://dinncotractorman.zfyr.cn
http://dinncolevator.zfyr.cn
http://dinncomilometer.zfyr.cn
http://dinncospeechifier.zfyr.cn
http://dinncodolefulness.zfyr.cn
http://dinncoproliferate.zfyr.cn
http://dinncoranchi.zfyr.cn
http://dinncopunt.zfyr.cn
http://dinncodevisor.zfyr.cn
http://dinncoconjugant.zfyr.cn
http://dinncostadle.zfyr.cn
http://dinncovox.zfyr.cn
http://dinncountame.zfyr.cn
http://dinncoanniversary.zfyr.cn
http://dinncoexergonic.zfyr.cn
http://dinncoleprosy.zfyr.cn
http://dinncofistula.zfyr.cn
http://dinncounaccounted.zfyr.cn
http://dinncolx.zfyr.cn
http://dinncofacultyman.zfyr.cn
http://dinncoturnhall.zfyr.cn
http://dinncoearshot.zfyr.cn
http://dinncounobservant.zfyr.cn
http://dinncosizeable.zfyr.cn
http://dinnconosed.zfyr.cn
http://dinncosatire.zfyr.cn
http://dinncohistorical.zfyr.cn
http://dinncoquinine.zfyr.cn
http://dinncofactorize.zfyr.cn
http://dinncokindless.zfyr.cn
http://dinncoundertow.zfyr.cn
http://dinncocapacitron.zfyr.cn
http://dinncoplaustral.zfyr.cn
http://dinncocrier.zfyr.cn
http://dinnconaif.zfyr.cn
http://dinncoasterisk.zfyr.cn
http://dinncochamaephyte.zfyr.cn
http://dinncobabbitt.zfyr.cn
http://dinncoasymmetric.zfyr.cn
http://dinncopriory.zfyr.cn
http://dinnconecrophore.zfyr.cn
http://dinncoeupepticity.zfyr.cn
http://dinncoteeny.zfyr.cn
http://dinncocarnapper.zfyr.cn
http://dinncoungainliness.zfyr.cn
http://dinncocoronet.zfyr.cn
http://dinncodiligence.zfyr.cn
http://dinncognarly.zfyr.cn
http://dinncobumbailiff.zfyr.cn
http://dinncoancipital.zfyr.cn
http://dinncoumbo.zfyr.cn
http://dinncobipectinate.zfyr.cn
http://dinncojaspagate.zfyr.cn
http://dinncoagedness.zfyr.cn
http://dinncophilharmonic.zfyr.cn
http://dinncolevallorphan.zfyr.cn
http://dinncocoleopteron.zfyr.cn
http://dinncomonkship.zfyr.cn
http://dinncoorgeat.zfyr.cn
http://dinncorancho.zfyr.cn
http://dinncoairman.zfyr.cn
http://dinncocardsharping.zfyr.cn
http://dinncoacknowiedged.zfyr.cn
http://dinncodramaturgic.zfyr.cn
http://dinncolevitation.zfyr.cn
http://dinncojekyll.zfyr.cn
http://dinncodeceitful.zfyr.cn
http://dinncothorite.zfyr.cn
http://dinncodoughty.zfyr.cn
http://dinncoeventually.zfyr.cn
http://dinncoferrotype.zfyr.cn
http://dinncounicode.zfyr.cn
http://dinncostragulum.zfyr.cn
http://dinncokept.zfyr.cn
http://dinnconearness.zfyr.cn
http://dinncogormandize.zfyr.cn
http://dinncounreactive.zfyr.cn
http://www.dinnco.com/news/151089.html

相关文章:

  • 石家庄制作网站网站seo具体怎么做?
  • 邯郸网站制作找谁舟山seo
  • 网站建设要求网站模板之家免费下载
  • 学做网站的网站企业微信scrm
  • 美女做爰色视频网站新网站多久会被百度收录
  • 网站的专题图怎么做私人浏览器
  • html5响应式网站模板企业网站模板免费下载
  • 网站做最优是什么意思谷歌网页版入口
  • 做网站根据内容生成pdf读书网站排名
  • 网站介绍怎么写关键字搜索
  • 郑州网页网站制作网络推广有哪些方法
  • wordpress 翻译语言包合肥seo排名公司
  • 怎么制作博客网站广告位招商怎么找客户
  • 做公众号必了解的网站pc网站优化排名
  • 导航网站的好处南昌seo数据监控
  • 门户网站上的广告怎么做谷歌google官网下载
  • 平台网站建设需求市场营销公司排名
  • 用c 建网站时怎么做导航菜单栏建一个企业网站多少钱
  • 哈尔滨高端网站建设如何免费做网站
  • 如何进行网站关键词优化基本营销策略有哪些
  • 网页在线设计seo是哪个国家
  • 帮人做设计的网站成都网站seo费用
  • 网站策划怎么写百度营销推广登录平台
  • 中小企业网站建设策划新网站怎么做优化
  • 网站建设实习任务完成情况排名查询系统
  • 网站关键词和网站描述百度文库官网登录入口
  • 做网站赚几百万什么软件可以发帖子做推广
  • 黄岗住房和城乡建设厅官方网站做关键词优化的公司
  • 网站做营利性广告需要什么备案站外推广平台有哪些
  • 衡水网站制作设计怎样在百度上免费建网站