Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FR: implement oci_index to support multi arch images #17

Closed
thesayyn opened this issue Aug 5, 2022 · 1 comment · Fixed by #34
Closed

FR: implement oci_index to support multi arch images #17

thesayyn opened this issue Aug 5, 2022 · 1 comment · Fixed by #34
Labels
enhancement New feature or request prioritized Similar to P1

Comments

@thesayyn
Copy link
Collaborator

thesayyn commented Aug 5, 2022

An example build file looks like below

# this image will have 4 layers in total
oci_image(
    name = "debian10",
    layers = [
        ":debian10_fs",
        ":debian10_passwd",
        ":libs"
    ]
)

platforms = {
    # 1:2+ transitions
    "@platforms//linux": [
        "@platforms//cpu:x86_64",    
        "@platforms//cpu:arm64",
        "@platforms//cpu:armel",
        "@platforms//cpu:ppc",
    ]
}

# will yield multi-platform image
oci_index(
    name = "debian_multi",
    image = ":debian10",
    platforms = platforms
)
@thesayyn thesayyn changed the title Implement oci_index to support multi arch images FR: implement oci_index to support multi arch images Aug 5, 2022
@thesayyn
Copy link
Collaborator Author

thesayyn commented Aug 9, 2022

PS: discovered that project-zot/zot#640 is a blocker

@cgrindel cgrindel added enhancement New feature or request prioritized Similar to P1 labels Sep 27, 2022
alexeagle pushed a commit that referenced this issue Mar 12, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request prioritized Similar to P1
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants