tarball
creates tarball from oci_image that can be loaded by runtimes such as podman and docker
Rules
oci_tarball
Creates tarball from OCI layouts that can be loaded into docker daemon without needing to publish the image first.
Passing anything other than oci_image to the image attribute will lead to build time errors.
example;
bazel build //target
docker load --input $(bazel cquery --output=files //target)
Example usage (generated):
load("@contrib_rules_oci//oci/private:tarball.bzl", "oci_tarball")
oci_tarball(
# A unique name for this target.
name = "",
# Label to an oci_image target
image = "",
# List of tags to apply to the loaded image
repotags = [],
)
name
Required name.
A unique name for this target.
image
Required label.
Label to an oci_image target
repotags
Required list of strings.
List of tags to apply to the loaded image