docker-build-test

Automate pre-push validation of Docker builds and tests with Make targets.

8|2|Updated Jul 13, 2015
One-click install
npx skills add https://github.com/tstapler/dotfiles --skill docker-build-test
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: docker-build-test
Source: https://github.com/tstapler/dotfiles/tree/main/.claude/skills/docker-build-test
Command: npx skills add https://github.com/tstapler/dotfiles --skill docker-build-test

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Docker builds and tests often fail late in CI/CD pipelines due to missing pre-push validation. This Skill provides a deterministic local workflow to validate Docker builds and tests before pushing.

Core Features & Use Cases

  • Deterministic Make-based pipeline to build and test multiple Docker images (e.g., healthcheck and pgbouncer).
  • Enforces a mandatory pre-push validation checklist to catch errors early.
  • Provides quick-start guidance and common command targets (validate, all, build, test, info, clean).

Quick Start

Run the pre-push validation workflow to ensure all checks pass before pushing changes.

Frequently Asked Questions about docker-build-test

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I validate Docker builds and tests before pushing to CI/CD?

Pre-push validation for Docker builds uses a deterministic Make-based pipeline to run targets like validate, all, build, and test locally before committing changes. This enforces a mandatory checklist to catch errors early and prevent late pipeline failures.

What is a Make-based workflow for local Docker validation?

A Make-based workflow automates Docker validation through command targets such as validate, all, build, test, info, and clean. It provides a deterministic local pipeline to ensure multi-image builds and tests pass before pushing any changes.

Can I run local Docker checks on multi-image workflows with healthchecks?

Yes, local Docker checks support multi-image workflows, including images configured with healthchecks and pgbouncer. The validation pipeline builds and tests these images locally to verify they pass common failure modes before pushing.

Do I need the Docker CLI to run pre-push validation targets?

The Docker CLI is supported for fallback scenarios when running pre-push validation. While the primary workflow is Make-based, standard Docker CLI commands can be used directly to build and test images if Make targets are unavailable.

What's the best way to prevent CI/CD failures from Docker builds?

Preventing CI/CD failures from Docker builds requires enforcing a mandatory pre-push validation checklist. Running a deterministic local Make pipeline with build and test targets catches errors early before changes are committed and pushed to the pipeline.

Why does my Docker build fail late in the CI/CD pipeline?

Docker builds fail late in CI/CD pipelines due to missing pre-push validation. Implementing a deterministic local workflow to validate builds and tests before committing changes catches common failure modes early and prevents downstream errors.