oci-layer-composition

Explain BuildStream OCI image assembly with stack, compose, and script elements.

134|27|Updated Nov 16, 2025
One-click install
npx skills add https://github.com/projectbluefin/dakota --skill oci-layer-composition
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: oci-layer-composition
Source: https://github.com/projectbluefin/dakota/tree/main/.opencode/skills/oci-layer-composition
Command: npx skills add https://github.com/projectbluefin/dakota --skill oci-layer-composition

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill demystifies the complex process of how packages and files are assembled into the final OCI image, enabling precise control and debugging of image contents.

Core Features & Use Cases

  • Package Flow Analysis: Trace how individual packages are incorporated into the OCI image through a series of BuildStream elements.
  • Layer Debugging: Diagnose why specific files are present or missing from the built image by understanding split domain filtering and composition stages.
  • Use Case: You've added a new package to elements/bluefin/deps.bst but it's not appearing in the final image. This Skill helps you follow its path through the stack and compose elements to identify where it might be excluded.

Quick Start

Explain the role of the oci/bluefin.bst element in the OCI image assembly process.

Frequently Asked Questions about oci-layer-composition

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

FAQPage Schema
How does BuildStream assemble packages into an OCI image?

BuildStream assembles OCI images by passing packages through stack, compose, and script elements to layer and filter artifacts. This process defines the parent layer hierarchy and applies junction overrides to control the final image contents.

Why is my package missing from the final OCI image layer?

Missing packages in an OCI image layer often result from incorrect split domain filtering during the compose stage. You must trace the package path through the stack and compose elements to identify where the files are excluded.

How do prepare-image.sh and build-oci scripts work in OCI image composition?

The prepare-image.sh and build-oci scripts execute specific preparation and build tasks during OCI image composition. They process the assembled file artifacts and apply the necessary configurations before the final image layer is generated.

What are common mistakes when managing split domains for OCI image construction?

Common mistakes in split domain management for OCI construction include incorrectly mapping package domains or failing to apply junction overrides. These errors prevent files from being properly included in the composed image layers.

How do I debug missing files in a built OCI container image?

Debugging missing files in a built OCI container image requires tracing the artifact flow through the composition stages. You need to inspect the stack and compose elements to verify that split domain filtering includes the intended files.

When do I need to use junction overrides in BuildStream OCI assembly?

Junction overrides are needed in BuildStream OCI assembly when you must alter the default parent layer hierarchy or replace specific project dependencies. They ensure the composition stage pulls the correct artifact versions for the image.