How to optimize time spent on container creation? #775
Replies: 1 comment 2 replies
-
Hi, so the most straight forward solution to your problem is use a self hosted runner. The self-hosted runner will keep images on disk so they are not re downloaded. Self hosted runners can be hosted anywhere you can buy a VM in the cloud or use hardware on prem depending on your needs. This reduced our pipeline runtimes to about 5 min total. I had some discussion with @freddydk on this topic. But there are no real good solution. GitHub hosted runners will throw away everything downloaded and redownload it when they need it. Caching the right things is not trivial. Freddy has created a script to setup a self hosted runner. That makes it straight forward to setup. We pay around 200$ per Month for a hosted Azure VM. But you could run that VM anywhere and probably cheaper. |
Beta Was this translation helpful? Give feedback.
-
Hi All!
We have just started using AL-Go and have just a few tests to start with, so run pipeline actions usually take:
I am wondering, how could I minimize the first part and avoid downloading a new image and creating a new container every time?
I think it would be enough to get a new container per a critical update (or even less frequent). So, I prepare the container manually once and then the pipeline picks it up until I update it again. Sounds like a plan!
What is the best place to store the prepared container? I am not sure that downloading that container will be faster than creating a new one...
And is it possible to skip "Pulling generic image" step or replace it with something faster?
I assume I need to override two scripts at least:
Any suggestions or samples of similar changes?
Beta Was this translation helpful? Give feedback.
All reactions