Build All Docker Images

Build all Docker images in dependency order with configurable tags and platforms.

Updated Jan 1, 2025
One-click install
npx skills add https://github.com/futuretea/bci --skill build-all-docker-images
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: Build All Docker Images
Source: https://github.com/futuretea/bci/tree/main/.claude/skills/build-all
Command: npx skills add https://github.com/futuretea/bci --skill build-all-docker-images

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) components.

What problem does it solve?

This Skill automates the process of building all Docker images in the repository, ensuring they are built in the correct dependency order, which is crucial when base images are updated.

Core Features & Use Cases

  • Dependency-aware Builds: Builds images in a sequence that respects dependencies (e.g., node depends on bookworm).
  • Platform Selection: Supports both single-platform and multi-platform (amd64, arm64) builds.
  • Prerequisite Checks: Validates that Docker is running and buildx is available for multi-platform builds.
  • Use Case: After updating a base Docker image, use this Skill to rebuild all dependent images without manually tracking the build order or platform configurations.

Quick Start

Build all Docker images using the 'local' tag and a single-platform build.

Frequently Asked Questions about Build All Docker Images

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

FAQPage Schema
How do I build all Docker images in a repository in the correct dependency order?

Building Docker images in dependency order requires tracking which base images need updating first. This Skill automates that sequencing, ensuring images like node depend on bookworm are built correctly, and reports a summary of success or failure for each image.

Can I build multi-platform Docker images for amd64 and arm64 architectures?

Yes, you can build multi-platform Docker images for amd64 and arm64 architectures. The Skill validates that Docker is running and buildx is available before initiating builds, supporting both single-platform and multi-platform configurations based on your needs.

What prerequisites do I need to run a multi-platform Docker build?

Prerequisites for multi-platform Docker builds include a running Docker daemon and buildx availability. The Skill validates these dependencies before initiating builds to ensure your environment supports the requested platform configurations.

Does this tool support custom tags when building Docker images?

Yes, this tool supports user-configurable tags when building Docker images. You can specify tags, such as 'local', during the build process to organize and identify your images effectively across different environments and deployment stages.

Why do my dependent Docker images fail to build after updating a base image?

Dependent Docker images fail when not built in the correct sequence after a base image update. This Skill solves the problem by automating the dependency-aware build sequence, ensuring all dependent images are rebuilt correctly without manual tracking.

What is the best way to rebuild all dependent images after updating a base Docker image?

The best way to rebuild dependent images is using an automated dependency-aware build process. This Skill rebuilds all dependent Docker images in their specified dependency order without manually tracking the build order or platform configurations.