Ce contenu n'est pas disponible dans la langue sélectionnée.

Chapter 33. Building Dependency Trees


33.1. Overview

OpenShift Container Platform uses image change triggers in a BuildConfig to detect when an image stream tag has been updated. You can use the oc adm build-chain command to build a dependency tree that identifies which images would be affected by updating an image in a specified image stream.

The build-chain tool can determine which builds to trigger; it analyzes the output of those builds to determine if they will in turn update another image stream tag. If they do, the tool continues to follow the dependency tree. Lastly, it outputs a graph specifying the image stream tags that would be impacted by an update to the top-level tag. The default output syntax for this tool is set to a human-readable format; the DOT format is also supported.

33.2. Usage

The following table describes common build-chain usage and general syntax:

Expand
Table 33.1. Common build-chain Operations
DescriptionSyntax

Build the dependency tree for the latest tag in <image-stream>.

$ oc adm build-chain <image-stream>
Copy to Clipboard Toggle word wrap

Build the dependency tree for the v2 tag in DOT format, and visualize it using the DOT utility.

$ oc adm build-chain <image-stream>:v2 \
    -o dot \
    | dot -T svg -o deps.svg
Copy to Clipboard Toggle word wrap

Build the dependency tree across all projects for the specified image stream tag found the test project.

$ oc adm build-chain <image-stream>:v1 \
    -n test --all
Copy to Clipboard Toggle word wrap
Note

You may need to install the graphviz package to use the dot command.

Retour au début
Red Hat logoGithubredditYoutubeTwitter

Apprendre

Essayez, achetez et vendez

Communautés

À propos de la documentation Red Hat

Nous aidons les utilisateurs de Red Hat à innover et à atteindre leurs objectifs grâce à nos produits et services avec un contenu auquel ils peuvent faire confiance. Découvrez nos récentes mises à jour.

Rendre l’open source plus inclusif

Red Hat s'engage à remplacer le langage problématique dans notre code, notre documentation et nos propriétés Web. Pour plus de détails, consultez le Blog Red Hat.

À propos de Red Hat

Nous proposons des solutions renforcées qui facilitent le travail des entreprises sur plusieurs plates-formes et environnements, du centre de données central à la périphérie du réseau.

Theme

© 2025 Red Hat