Skip to main content

Advanced image-build examples

Output formats: build acceptance, active builds, build history, builder logs, and published image/digest.

These examples cover build behavior beyond the introductory build and storage example.

DirectoryStatusPurpose
smoke/Validation pendingBuilds and runs a small tenant image.
long-running/Approval requiredCreates a deliberately slow build for cancellation testing.
offline-cache/Operator configuration requiredInstalls a pinned package from an approved HTTPS package mirror.
private-parent/Validation pendingBuilds from the smoke image in the same tenant registry.

Uplink each directory to the matching path in the default volume before using its build manifest. For example:

dphi> storage uplink default docs/examples/image-builds/smoke/Dockerfile examples/image-builds/smoke/Dockerfile
dphi> build create docs/examples/image-builds/smoke/build.yaml --idempotency-key image-smoke-v1
dphi> build wait YOUR_BUILD_ID --timeout 3600
dphi> build logs YOUR_BUILD_ID

Replace tenant-a in consuming workload or parent-image references. Use the exact image value returned by a successful build. The cancellation and package mirror examples should be run only with platform-operator approval.