Skip to main content
Version: 1.4.x

image_index

Implementation details for oci_image_index rule

Rules

oci_image_index

Build a multi-architecture OCI compatible container image.

It takes number of oci_images to create a fat multi-architecture image.

Requires wc and either sha256sum or shasum to be installed on the execution machine.

oci_image(
name = "app_linux_amd64"
)

oci_image(
name = "app_linux_arm64"
)

oci_image_index(
name = "app",
images = [
":app_linux_amd64",
":app_linux_arm64"
]
)

Example usage (generated):

load("@rules_oci//oci/private:image_index.bzl", "oci_image_index")

oci_image_index(
# A unique name for this target.
name = "",
# List of labels to oci_image targets.
images = [],
)

name

Required name.

A unique name for this target.

images

Required list of labels.

List of labels to oci_image targets.