Garden build takes a long time.


08/10/2023, 6:44 PM
Hi, our pipeline with garden sometimes take over an hour, is there a way to speed things up for the production pipeline?



08/11/2023, 11:50 AM
Hi @colossal-salesclerk-87522! My first suggestion would be to use the verbose log level and to turn on timestamps (by passing the
CLI options). This should show you the full logs for the Docker builds, along with a timestamp for each log line. Hopefully, this will reveal where the builds are spending most of their time (e.g. fetching layers from a registry, or at certain steps in the Dockerfiles). If you're using in-cluster building via the
build modes (see, you should also be able to trigger your build pipeline from your dev machine. That way, you might be able to quickly iterate on identifying the performance bottlenecks in your builds without having to repeatedly re-trigger your CI pipeline. Those would be my initial suggestions. We'd be happy to look at this more closely with you if anything unexpected shows up!
By the way: If possible, it's probably a good idea to focus on one build/Dockerfile at a time (just to keep the feedback loop relatively fast as you diagnose this).