Skip to content

In development. Expect rough edges and changes. The source code is not public yet.

Docker 12 min read How-to mediumAdept

Mastering Docker and Jenkins: Build Robust CI/CD Pipelines Efficiently

Docker and Jenkins combine into a CI/CD pipeline where Jenkins orchestrates checkout, image build, containerized tests and registry push, and Docker supplies consistent build environments. The walkthrough covers installing the Docker plugins (via UI, CLI or JCasC), a Jenkinsfile that builds, tests and pushes, and the tradeoff between webhook and SCM-polling triggers. It also gives maintenance tips such as image cleanup and ephemeral Docker agents, plus Declarative Pipeline examples showing stage-level Docker agents, parallel stages, parameters and matrix builds.

Related posts

  • Master Docker and VS Code: Supercharge Your Dev Workflow

    Docker mediumAdept

    Docker containers paired with VS Code's Docker extension give every developer an identical environment and remove "works on my machine" bugs. The walkthrough builds and runs annotated Dockerfiles for an Express app and a Flask app, then manages containers from the extension's sidebar. It also covers attaching the debugger to Node's inspect port (9229) and to multiple services under Compose, and using Dev Containers for shared team environments. Tips include trusted base images, scanning with Docker Scout or Trivy, `.dockerignore` and multi-stage builds, and a GitHub Actions snippet that builds, tests and pushes images.

  • BuildRock: A Build Platform at Slack

    Slack Engineering mediumAdept

    Slack consolidated its sprawling, hand-managed "snowflake" Jenkins clusters into BuildRock, a build-as-a-service platform. Jenkins controllers run statelessly on Kubernetes, configured through the Configuration-as-Code (casc) plugin and Jinja2 templates, and every change flows through GitOps, so a cluster can be rebuilt identically from Git. State such as build history lives on EFS with automated backups, plugins come from central storage, vulnerability scanning runs on every build, and test and pre-staging clusters catch problems before production. Rollout was incremental: controllers moved to Kubernetes before agents, with static EC2 agents alongside ephemeral pods, and old clusters were kept on standby for fast rollback under a shared ownership model with service teams.

  • How we build containerized services at GitHub using GitHub

    GitHub Engineering easyNovice

    GitHub runs hundreds of internal and production services on a "paved path": a Kubernetes-based, multi-cluster, multi-region platform plus conventions and custom tooling layered on top. Services are onboarded via a Hubot ChatOps scaffold command and a GitHub App that opens a PR with deployment.yaml, Kubernetes Deployment/Service manifests, a Debian Dockerfile, and CI checks that build images on every push. Each app/environment gets its own namespace, secrets are injected per-environment from a central vault, and deployments render manifests with the latest image and secrets before applying them across clusters. Centralizing capacity planning, security scanning, base images and deploy tooling lets teams skip cluster management and focus on their applications.

  • Accelerate Your Docker Builds Using AWS CodeBuild and Docker Build Cloud

    Docker mediumAdept

    Offloading 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.

  • Build and Distribute AI Agents and Workflows with cagent

    Docker mediumAdept

    cagent is Docker's open-source command-line runtime that defines AI agents (model, instructions, persona and MCP tools) in a single YAML file and distributes them through OCI registries such as Docker Hub. Two working agents illustrate it: a GitHub-issues to-do tracker, and an internal assistant that queries Docker Captains' contributions in Advocu through a custom MCP server running in a container. Practical tips include connecting through the Docker MCP gateway to reuse Docker Desktop's OAuth login, and limiting the verbose GitHub MCP server to the issue-related tools the agent needs.

The quest for software engineering knowledge.

Look:
Layout: