R
R
Ryabos2018-10-02 14:37:34
Software Deployment
Ryabos, 2018-10-02 14:37:34

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:

  • what values ​​does build/deploy achieve in large projects?
  • what usually affects build speed the most?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
samizdam, 2018-11-21
@Ryabos

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 question

Ask a Question

731 491 924 answers to any question