Alx*_*Alx 5 google-cloud-build
查看 Google Cloud Build 的纱线构建器的源代码,我想知道为什么建议使用构建器而不是指定入口点。
https://github.com/GoogleCloudPlatform/cloud-builders/tree/master/yarn
基本上
steps
- name: 'gcr.io/cloud-builders/yarn'
args:
- install
Run Code Online (Sandbox Code Playgroud)
与
steps:
- name: node:10
entrypoint: yarn
args:
- install
Run Code Online (Sandbox Code Playgroud)
是否因为云构建器已在 Google Cloud 容器注册表中注册,因此从 Google Cloud 构建中读取速度更快?
是的,你被纠正了。事实上,建议这样做,因为使用构建器从容器注册表中读取数据会更快。
根据代码所示,您直接从纱线引用容器,这将使访问比使用入口点更快。
如果这些信息对您有帮助,请告诉我!
| 归档时间: |
|
| 查看次数: |
1174 次 |
| 最近记录: |