-
Notifications
You must be signed in to change notification settings - Fork 43
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
[feature request] Support generic OCI image in init --provisioners
#178
Comments
@mathieu-benoit how would that work? What would the archive format be inside the image and how would users create an image file with a single yaml file inside it? |
Why is this better than just an https url? |
Simple as:
Then you can use it:
Or more embedded:
Why it's appealing? Because you now have your provisioners as OCI artifacts in your private secure artifact/container registry. Not directly related, but I went through this full picture/story in a GitOps flow with Policies files, as an illustration: https://medium.com/p/e1233429ae2. |
Ah ok I see so this is a common pattern used in So
Thankfully looks like there's a useful go library here: https://github.com/oras-project/oras-go. Cool @mathieu-benoit I think this is a good idea. Note that we MUST keep the oci:// or oras:// scheme prefix on the URI to unambiguate it. |
Also note: This would import ALL the files from that oci reference: all provisioner files and possibility utility scripts as needed. |
Yup, I think And yes, you can do this below to upload multiple files in a folder:
|
hey, since it's a good first issue, Can I try to fix it? |
@7h3-3mp7y-m4n For sure, that sounds great! You can go ahead and assign the issue to yourself whenever you're ready to get started. If you have any questions in regards to the implementation @mathieu-benoit and @delca85 should be able to assist. Thanks a lot! |
thanks @mathieu-benoit and @sujaya-sys I'll start working on this and I'll be happy if you folks could help me if I run into some confusion :) |
@7h3-3mp7y-m4n, like discussed offline, the implementation of this needs to actually happen in the https://github.com/score-spec/score-go repo, see example here: score-spec/score-go#45. |
Thanks @mathieu-benoit :) |
Now implemented in https://github.com/score-spec/score-compose/releases/tag/0.20.0 and https://github.com/score-spec/score-k8s/releases/tag/0.1.15, with the integration of https://github.com/score-spec/score-go/releases/tag/v1.8.4. Closing now! |
To complete #175, it would be great to support generic OCI image to import external provisioners.
https://opencontainers.org/
Example:
Wondering if for this we could use the ORAS client:
The text was updated successfully, but these errors were encountered: