Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

scuttlebyte's avatar

How can I use docker to speed up CI builds?

This is a pretty specific question, but I figured asking some likeminded folks might get me farther than I've gotten via other channels.

I'm just getting started with Continuous Integration and want to leverage docker to speed up my builds. I've repurposed the scripts I found in another Laracasts thread that works great, but takes a while (8+ minutes) to run.

I'm a complete rookie when it comes to containerization, in spite of trying several attempts over the last couple years to wrap my head around it. Even understanding how little I do, I feel like I'm missing out on the utility of containers/docker as part of this process, so I have two questions:

Is there a simple way to pull in a Laravel Forge-ish docker container to run my tests against? Is there a guide/tutorial anyone can recommend for docker-driven ci written for someone who learns the "Laracasts Way"?

0 likes
2 replies
scuttlebyte's avatar

Thanks for the recommendation. I love me some Fidao. I will run through the Docker videos there again. It's been a while but I remember them being pretty straight forward, I may just have a mental barrier when it comes to containers.

I'm also not totally sure how to integrate a specific container with the gitlab ci (I think via DockerHub somehow), so there's another mental hurdle to clear.

Please or to participate in this conversation.