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

Empty descriptor as app manifest config #31

Merged
merged 1 commit into from
Oct 11, 2024

Conversation

mike-sul
Copy link
Collaborator

@mike-sul mike-sul commented Oct 10, 2024

  • Move functionality related to compose app manifest creation into a
    separate file and encapsulate it within a single object.

  • Use the empty descriptor as a value of the app manifest config field
    as the OCI image specification instructs.

@mike-sul mike-sul force-pushed the empty-descriptor-as-app-manifest-config branch 2 times, most recently from 98636f6 to a5b25d7 Compare October 10, 2024 12:38
Encapsulate the compose app manifest creation functionality in a
separate file and object.
Use the empty descriptor as a value of the app manifest config field
as the OCI image specification instructs.

Signed-off-by: Mike Sul <mike.sul@foundries.io>
@mike-sul mike-sul force-pushed the empty-descriptor-as-app-manifest-config branch from a5b25d7 to 42a8ff9 Compare October 10, 2024 12:57
@mike-sul mike-sul marked this pull request as ready for review October 10, 2024 13:01
@mike-sul mike-sul requested a review from doanac October 10, 2024 13:01
Copy link
Member

@doanac doanac left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I assume there's some unspecified benefits to using the empty config?

@mike-sul
Copy link
Collaborator Author

I assume there's some unspecified benefits to using the empty config?

I don't see much practical benefits in it at the moment except that the standard tools like docker or skopeo yield a meaningful error when trying to pull a compose app (something like unsupported image type).

The OCI image specs requires it, according to it the empty descriptor as a manifest config value is mandatory. So we have to do it if we want our compose app be OCI compliant.

@mike-sul mike-sul merged commit 71fdb75 into main Oct 11, 2024
2 checks passed
@mike-sul mike-sul deleted the empty-descriptor-as-app-manifest-config branch October 11, 2024 06:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants