r/devops • u/AutoModerator • 24d ago
Weekly Self Promotion Thread
Hey r/devops, welcome to our weekly self-promotion thread!
Feel free to use this thread to promote any projects, ideas, or any repos you're wanting to share. Please keep in mind that we ask you to stay friendly, civil, and adhere to the subreddit rules!
13
Upvotes
View all comments
1
u/Low-Consequence2092 17d ago
Warm Docker-in-Docker slots for ephemeral GitHub Actions runners: how I cut a monorepo CI from ~6.5 to ~3 min without Kubernetes
Ephemeral runners are the safe default for GitHub Actions, but they start cold: every job pulls its
services:images, rebuilds Docker layers, and restores package caches from blob storage. Persistent runners are fast but leak state between jobs.The approach I ended up with, now an open-source tool called Pitlane (Go, MIT):
docker:dindcontainer with its own data volume. Slots never share a network, and jobs never see the host's Docker socket.actions-runnercontainer joins the slot's network namespace (like a pod) withDOCKER_HOSTpointing at the slot daemon. It runs one job and is deleted.actions/cacheis served from the host: a small shim in front of the runner's Node points the cache toolkit at Pitlane, with a per-job token scoped to the owner. Artifacts, OIDC and logs still go to GitHub.actions/scaleset, same API as ARC), over a long-poll.Measured on one private monorepo (pnpm, Nuxt, Prisma, Postgres/Redis services, 3 image builds), Pitlane in a 12-vCPU unprivileged Proxmox LXC:
The unit test row is the honest part: CPU-bound work runs at the speed of your hardware. Everything that is download or rebuild gets faster.
Trade-offs I haven't solved:
Write-up of the design and comparison with ARC, runscaler, GARM and terraform-aws-github-runner: https://turoyt.github.io/pitlane/why Code: https://github.com/TuroYT/pitlane
I'm curious how others handle Docker layer caching on ephemeral runners: registry cache,
type=gha, sticky disks, something else?