You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The idea is quite simple: Wildcards to push multiple files (of a certain type or naming schmema).
For example:
Given the use-case I store a bunch of documentation files in a folder it would be great to do:
oras push repo_a/mypushedfiles:v1.0.0 ./*.pdf:application/pdf to push all pdf files with the correct type.
In my case, I want to manage a certain artifact with a lot of files with different file types (but the number of different file types is manageable). There is a lot of files of the same file type, so it would actually be great to add the content with such a feature. Otherwise I would have to add all files explicitly to have them added with the correct type.
Why is this needed for ORAS?
This would greatly help pushing larger amounts of files with the correct type for deduplication.
Are you willing to submit PRs to contribute to this feature?
Yes, I am willing to implement it.
The text was updated successfully, but these errors were encountered:
Hi @VMariusKlein , have you considered pushing a folder with those files? or you would expect those files have to be pushed and stored separately to a repo?
Hi @FeynmanZhou !
The reason for this requirement is the advantages of deduplication which is not really given if the folders are pushed.
Imagine the folder contains 200 pdfs and 200 images in png format. Then one file changes of those 200.
If I push the folder as a whole as tarball, I would have a new version of the tarball and can't profit from the 199 other files staying the same.
If I had every single file as unique artifact, then I can profit from the fact that only the one file changed and the deduplication.
What is the version of your ORAS CLI
1.2.0
What would you like to be added?
The idea is quite simple: Wildcards to push multiple files (of a certain type or naming schmema).
For example:
Given the use-case I store a bunch of documentation files in a folder it would be great to do:
oras push repo_a/mypushedfiles:v1.0.0 ./*.pdf:application/pdf to push all pdf files with the correct type.
In my case, I want to manage a certain artifact with a lot of files with different file types (but the number of different file types is manageable). There is a lot of files of the same file type, so it would actually be great to add the content with such a feature. Otherwise I would have to add all files explicitly to have them added with the correct type.
Why is this needed for ORAS?
This would greatly help pushing larger amounts of files with the correct type for deduplication.
Are you willing to submit PRs to contribute to this feature?
The text was updated successfully, but these errors were encountered: