Sign in
Log inSign up
Alan Fernandez

83 likes

·

451 reads

5 comments

Parv Gupta
Parv Gupta
Feb 21, 2021

Great post Alan Fernandez, I have got one question, how are you managing the npm cache to reduce the build time for subsequent builds during the integration stage?

1
·
·1 reply
Alan Fernandez
Alan Fernandez
Author
·Feb 21, 2021

This is an excellent question, and definitely a place where we can improve build times (npm install being one of the steps that take the longest)

While in this document the focus was to try to keep the pipeline as simple as possible. If you wanted to implement npm cache we could use google cloud storage as a sort of "persistant disk" where we could cache package for subsequent builds. We could then add steps to add the packages to the npm cache as part of one of our build steps before npm install.

More info can be found here as to how we woud go about that cloud.google.com/build/docs/speeding-up-bu…

1
·
william anderson
william anderson
Feb 21, 2021

damn this is just what i needed

·
Catalin Pit
Catalin Pit
Feb 22, 2021

Nice one; great article, Alan Fernandez!

·
Priya Raimagiya
Priya Raimagiya
Jun 21, 2024

Nice article!

·