为什么建议使用云构建器进行纱线?

  • 本文关键字:构建 google-cloud-build
  • 更新时间 :
  • 英文 :


查看Google Cloud Build的yarn构建器的源代码,我想知道为什么建议使用构建器而不是指定入口点。

https://github.com/GoogleCloudPlatform/cloud-builders/tree/master/yarn

基本上

steps
- name: 'gcr.io/cloud-builders/yarn'
args:
- install

steps:
- name: node:10
entrypoint: yarn
args:
- install

是因为云构建器是在Google Cloud Container Registry注册的,从Google Cloud Build中读取速度更快吗?

是的,你被纠正了。实际上,建议这样做,因为使用构建器从容器注册表读取将更快。

按照代码指示,您直接从 yarn 引用容器,这将使访问比使用入口点更快。

让我知道这些信息是否对您有帮助!

最新更新