Skip to content

hunshcn/rule_oci_bundle

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Sep 18, 2023
e06daaa · Sep 18, 2023

History

1 Commit
Sep 18, 2023
Sep 18, 2023
Sep 18, 2023
Sep 18, 2023
Sep 18, 2023
Sep 18, 2023
Sep 18, 2023
Sep 18, 2023

Repository files navigation

rule_oci_bundle

a copy of bazel-contrib/rules_oci#360

Description

In some offline deployment scenarios, we need to bundle all the images, copy them to the machine through mobile media, and then push them to registry through tools such as crane.

Similar to crane pull --format=oci image1 image2 output-dir, but locally.

Usage

oci_bundle(
    name = "bundle",
    images = {
        "ghcr.io/<OWNER>/image1:tag": ":image1",
        "ghcr.io/<OWNER>/image2:tag": ":image2",
    },
)

see detail in example