Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/visual-studio-2008/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Google cloud build 为什么建议对纱线使用云生成器?_Google Cloud Build - Fatal编程技术网

Google cloud build 为什么建议对纱线使用云生成器?

Google cloud build 为什么建议对纱线使用云生成器?,google-cloud-build,Google Cloud Build,查看Google Cloud Build的Thread builder的源代码,我想知道为什么建议使用该builder而不是指定入口点 基本上 steps - name: 'gcr.io/cloud-builders/yarn' args: - install vs 这是因为cloud builder已在Google cloud容器注册表中注册,从Google cloud builder中读取速度更快吗?是的,您已更正。事实上,建议这样做是因为使用构建器从容器注册表读

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

基本上

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


这是因为cloud builder已在Google cloud容器注册表中注册,从Google cloud builder中读取速度更快吗?

是的,您已更正。事实上,建议这样做是因为使用构建器从容器注册表读取数据会更快

正如代码所示,您直接从Thread引用容器,这将使访问比使用入口点更快


如果这些信息对你有帮助,请告诉我

谢谢你的回复,我想是的,但不太确定。
steps:
  - name: node:10
    entrypoint: yarn
    args:
      - install