Powered by Docker: Streamlining Engineering Operations as a Platform Engineer
Replacing QEMU-emulated multi-architecture Docker Buildx builds with native arm64 and amd64 self-hosted GitHub Actions runners cut build times by roughly 90%, with the multi-arch manifest published after the native builds finish. The runners live on separate Kubernetes node pools provisioned with Terraform and targeted via nodeSelector. Two further changes covered operations: SemVer-tagged images allow quick ECS rollbacks, and OpenTelemetry collector sidecars plus multi-stage Node.js Dockerfiles standardize telemetry collection and auto-instrumentation. The client reports about a 50% drop in lead time and time to restore, and about a 30% reduction in MTTD and MTTR.
Related posts
- Accelerate Your Docker Builds Using AWS CodeBuild and Docker Build Cloud
Docker mediumAdeptOffloading container image builds from AWS CodeBuild to Docker Build Cloud addresses three common CI bottlenecks: undersized build machines, no persistent layer cache in clean CI environments, and slow emulated multi-architecture builds. A buildspec.yml installs the latest Buildx, logs in to ECR and Docker with a PAT from Secrets Manager, selects a cloud builder, and runs `docker buildx build --platform linux/amd64,linux/arm64 --push` straight to ECR. On a 2 vCPU/3GB CodeBuild instance, the build dropped from 5:59 for an AMD64-only local build to 1:04 for a native AMD64+Arm64 build, using 16 vCPU/32GB builders and a 200 GiB shared cache.
- How GitHub uses GitHub Actions and Actions larger runners to build and test GitHub.com
GitHub Engineering mediumAdeptGitHub moved CI for GitHub.com to GitHub Actions on larger runners, peaking at about 4,500 concurrent 32-core runners, 15,000 jobs per hour and 150,000 cores. Custom VM images that pre-bundle tools and a cached build of the project source, refreshed several times a day through an API, cut workflow time from about 50 to 12 minutes. Reusable workflows keep CI configuration and runner selection central across repositories, and reusing results when Git tree IDs match skips 300-500 runs a day. Isolated runners reach private VPC services through an OIDC-token-validating remote access gateway, whose scaffolding is open-sourced.
- Counting to 3 with a new builder processing 50M+ monthly builds
Railway mediumAdeptRailway replaced its docker-buildx-on-GCP-VMs build system with Builder v3: 256-vCPU bare-metal hosts split into eight 32-vCPU microVM build cells running buildkitd, scheduled with a 1-of-3 ring to keep BuildKit caches warm, now peaking at 66,000 builds per hour. Collapsing a host/guest split (workflow → gRPC over vsock → guest handler) into one standalone builder process cut about 20 seconds from cached builds. Rollout problems included VM bridge networking failures that forced a rollback, unreliable DNS (fixed with embedded CoreDNS), clock drift breaking cert validation, and stuck builds from runc workers starving buildkitd, fixed with cgroup v2 slices. Reading layer metadata from OCI manifests instead of decompressing layers was about 15× faster and saved roughly 10 seconds per build.
- The quest for the five minute deploy
incident.io mediumAdeptincident.io cut CI/CD times by moving from a hosted provider, where a cold Go build cache made compiling 15,000+ tests across 350+ packages the bottleneck, to Buildkite running on three self-hosted 48-vCPU servers. Prebuilding Ginkgo test binaries and running them in batches on a single server, plus per-server Go build caches, per-yarn.lock Node module caches with pipeline fallback, and local Docker image caches, brought the test step to 2–4 minutes. Production deploys fell from 11.5 to 8.5 minutes, branch builds from 10 to 5.5, and hotfixes to 3.5. Remaining pain points include bin packing containers, under-provisioned disk IOPS, newly exposed flaky tests, cache poisoning, zombie containers, and a fast-growing cache that must be cleared wholesale.
- Deploying to production in <5m with our hosted container builder
incident.io mediumAdeptincident.io cut Docker image build times from an inconsistent 3–10+ minutes back to under 2 minutes by replacing CircleCI's remote Docker and Docker Layer Caching with a permanently running GCP c2-standard-8 builder with a 500GB SSD. The slow builds came from CircleCI's DLC attaching a cache disk only when one is free, so concurrent builds often started with a cold layer cache. Larger CircleCI resource classes added minutes of provisioning time. CircleCI jobs now reach the dedicated daemon over SSH via DOCKER_HOST. Measured builds take 20s with no changes and about 1m50s when both the Go backend and React frontend change, for roughly £350/month.