Skip to content

support --platform in oras push and oras attach #1066

Closed

Description

@qweeah

What is the version of your ORAS CLI

oras v1.1.0-rc.1

What would you like to be added?

Add a new flag --platform(flag name TBD) to allow baking platform information into config data like

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

The specified platform information will be stored in the config blob like https://oras.land/docs/concepts/artifact#artifacts-with-config

Why is this needed for ORAS?

User can easily build artifact with platform information without composing config blob on their own.

Are you willing to submit PRs to contribute to this feature?

  • Yes, I am willing to implement it.

Activity

  1. added
    enhancement
    on Aug 18, 2023
  2. added this to the future milestone on Aug 18, 2023
  3. iambahmanop commented on Jan 19, 2024

    @iambahmanop
    Contributor

    Should I include support for a platform flag ? // @qweeah

  4. qweeah commented on Jan 19, 2024

    @qweeah
    ContributorAuthor
  5. modified the milestones: future, v1.3.0 on Mar 4, 2024
  6. shizhMSFT commented on Mar 14, 2024

    @shizhMSFT
    Contributor

    What's the media type of the config? Is it artifact-type or the standard config type? How is it supported by multiple cloud providers?

  7. added
    spec required
    on Mar 14, 2024
  8. reopened this on Oct 17, 2024
  9. qweeah commented on Oct 17, 2024

    @qweeah
    ContributorAuthor

    Still need to apply this to oras attach

  10. TerryHowe commented on Oct 17, 2024

    @TerryHowe
    Member

    oras atach has a platform option although I haven't tried it

  11. Wwwsylvia commented on Nov 14, 2024

    @Wwwsylvia
    Member

    Still need to apply this to oras attach

    Do you mean we can add a --artifact-platform flag to the manifest of the config referrers, just like we do for oras push?

    oras atach has a platform option although I haven't tried it

    That is to control which arch-specific manifest to attach on.


    But what are the use cases of adding platform to a referrer?🤔

  12. FeynmanZhou commented on Nov 20, 2024

    @FeynmanZhou
    Member

    Still need to apply this to oras attach

    Since we lack of the scenario for oras attach, we will keep it in ORAS future milestone.

  13. TerryHowe commented on Nov 20, 2024

    @TerryHowe
    Member

    I think a new issue for attach would make it easier

  14. Wwwsylvia commented on Nov 21, 2024

    @Wwwsylvia
    Member

    I just opened a new issue for oras attach: #1537
    I think we are good to close this one.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

enhancementmulti-archspec required

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions