Skip to content

Support --artifact-platform in oras attach? #1537

Open

Description

@Wwwsylvia

In #1066, we discussed adding platform information into the artifact manifest. Now we have implemented the --artifact-platform flag for oras push, we should also consider if it's helpful to add the same functionality to oras attach.

It would be something like:

oras attach localhost:5000/oras:v1.0.1 --artifact-type "application/vnd.sbom" --artifact-platform linux/amd64 oras--1.0.1.arm64_monterey.bottle.tar.gz

Activity

  1. added this to the future milestone on Nov 21, 2024
  2. FeynmanZhou commented on Nov 21, 2024

    @FeynmanZhou
    Member

    It may require a valid scenario to justify why platform information is necessary for a referrer artifact. Suggest keeping this issue open for discussion and feedback gathering from the community.

  3. Horiodino commented on Jan 16, 2025

    @Horiodino
    Contributor

    well consider attaching platform-specific NVIDIA GPU drivers to a container image( Ai era, everyone and their neighbor is running kubernetes GPU clusters). Without platform info in the referrer artifact, tools must download and inspect all driver variants to find a compatible one. By adding --artifact-platform to oras attach, tools can immediately identify and fetch only the platform-appropriate driver
    suppose if we not , then download all driver artifacts ,examine their contents to determine compatibility ,select the appropriate one for the target platform and so on.

    what you folks think?

  4. added
    question
    on Jan 17, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    question

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions