Create a tarball from oci_image that can be loaded by runtimes such as podman and docker.
For example, given an
:image target, you could write
name = "tarball",
image = ":image",
repo_tags = ["my-repository:latest"],
and then run it in a container like so:
bazel run :tarball
docker run --rm my-repository:latest
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 usage (generated):
# A unique name for this target.
name = "",
# Label of a directory containing an OCI layout, typically `oci_image`
image = "",
# a file containing repo_tags, one per line
repo_tags = "",
A unique name for this target.
Format of image to generate. Options are: docker, oci. Currently, when the input image is an image_index, only oci is supported, and when the input image is an image, only docker is supported. Conversions between formats may be supported in the future.
Label of a directory containing an OCI layout, typically
a file containing repo_tags, one per line.