Replies: 1 comment 1 reply
-
Hi Tom, thanks for the question. Can you provide a more specific scenario on: you have a service artifact containing a container image and some configuration files but you only want to pull the configuration layers without the image layers. For now, From personal perspective, the best practice to pack a service artifact is not to put file layers and image layers all under one OCI artifact manifest, but to put them into different artifacts. We are preparing 0.14.0 and it supports a new manifest type to allow user attaching service files(e.g. service configurations) to a service image. After we released 0.14.0, you can download the configuration file layers via
For now, there is no plan to support more fine-grained layer filtering for |
Beta Was this translation helpful? Give feedback.
-
Hey everyone!
With oras-cli version pre
0.13.0
we were (maybe ab-) using the--media-type
flag to instruct oras to only pull specific parts of an artifact. For example, we would publish a service artifact containing a container image, as well as, some configuration files and deployment scripts. Since in certain scenarios we would only need access to the scripts or configuration we could save time by just specifying a specific media type.Because
--media-type
was removed with version0.13.0
I am now wondering what the best solution would be to achieve a similar functionality? I saw that the OCI describes Layer Types. Could this help here?Thanks, everyone!
Beta Was this translation helpful? Give feedback.
All reactions