Answer the question
In order to leave comments, you need to log in
How long does it take to build-delpoy a project?
The article on Habré talks about cases when building and deploying a project takes one hour. In my practice, delpoy usually took a few seconds. So it got interesting:
Answer the question
In order to leave comments, you need to log in
Our pipeline transit time in gitlab-ci not so long ago reached an hour and even exceeded this value.
I had to figure out how to speed up, look at bottlenecks and possible optimizations.
In my case, the bottlenecks were npm install, gulp and docker build. I don’t remember the exact numbers now, but some jobs took from 7 to 20 minutes. Well, npm install is necessary at several successive steps: linters, tests, building sources for images, etc. Cumulatively, this gave 60-80 minutes for all steps.
I decided that:
- switched from npm to yarn - it works several times faster.
- the assembly of gulp and docker was parallelized where possible, increasing the number of runners
. Reduced to 15 minutes.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question