简体   繁体   中英

Can you cache community builders?

I need to use Helm in my build pipeline. As described in the docs I downloaded the source of the Helm community builder and pushed the built image to GCR.

Now if i use the builder in my pipeline it takes an absurd amount of time for Google Build to download the builder image from GCR and run the Helm commands.

Is there any way I could speed this process up? Can I somehow cache intermediate layers of a builder image?

With Cloud Buildcommunity images , there's a (disappointing) requirement that you must build the image for yourself before you may use it.

If you're building the community image every time you use it, it's going to take more time than is possibly necessary.

IIUC, your cacheing solution is to disconnect building the community image (and storing it in eg a Google Container Registry to which you have access) from using the community image in your Cloud Builds that use the Helm builder.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM