FeaturedSystems / CI/CD / Infrastructure

PipeCI

A custom CI/CD platform built with Docker — containerized build runners, automated test execution, and deployment pipelines with real-time log streaming.

DockerGoGitHub ActionsCI/CDWebSockets
PrivateOffline

Overview

PipeCI is a self-hosted continuous integration and delivery platform designed from scratch to understand how CI/CD systems work under the hood. Instead of relying on GitHub Actions or Jenkins as a black box, I built a system that spins up ephemeral Docker containers for each pipeline stage, executes user-defined build and test steps, streams logs in real time over WebSockets, and reports results back to the dashboard. The platform supports pipeline-as-code configuration via YAML, parallel stage execution, artifact caching between stages, and webhook-triggered builds from GitHub push events.

Architecture

The system follows a controller–worker architecture. A Go API server handles webhook events, parses pipeline YAML configs, and schedules stages onto a pool of Docker-based workers. Each worker pulls the relevant Docker image, mounts the source code, and executes the pipeline steps in an isolated container. Logs are streamed back to the controller via a lightweight message bus and forwarded to the frontend over WebSockets. A PostgreSQL database tracks pipeline runs, stage statuses, and build artifacts. The entire platform is itself containerized and orchestrated with Docker Compose.

Engineering Challenges

  • 1Designing ephemeral, isolated build environments using the Docker Engine API — handling container lifecycle, volume mounts, and network isolation programmatically in Go.
  • 2Implementing real-time log streaming from containers to the browser with minimal latency, using a pub/sub pattern over WebSockets.
  • 3Building a YAML-based pipeline DSL that supports parallel stages, conditional steps, and environment variable injection while keeping the parser simple and debuggable.
  • 4Managing concurrent pipeline runs without resource starvation — implementing a worker pool with configurable concurrency limits and graceful container cleanup on cancellation.

Stack

DockerGoGitHub ActionsCI/CDWebSockets