-
Notifications
You must be signed in to change notification settings - Fork 141
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
Copy Annotations into config.json (Docker Labels) #692
Comments
Hi @amouat, I am not sure if I understood what we meant by config here, is it : So if we try to understand you suggested adding the |
Oh okay I think I got it, you probably meant this right which becomes the eventual config.json + rootfs bundle? So how do we plan to copy it here, by creating a new field for |
More or less @mritunjaysharma394. I'm talking about this file to be exact, which is in every image tarball. My suggestion is not to add anything new to the apko yaml, but when building the image add annotations both in the manifest and as Labels in the |
Oh that makes sense, thanks a bunch @amouat, I think so that more or less I have understood the assignment here:
If that sounds okay, maybe I can try to get my hands dirty and create a proposal/PR/Draft PR to implement this? Thanks again 🙏 |
That would be great @mritunjaysharma394! However, I would like @kaniini or someone to verify that we do want this functionality first. Assuming we do, it's hopefully just a case of copying the annotations struct into the labels struct for the config. |
Apko currently supports adding annotations as per the OCI Image spec: https://github.com/opencontainers/image-spec/blob/main/annotations.md
Docker's support for annotations seems a bit mixed, and in particular
docker inspect
will not display annotations. For this reason, it might be worth adding annotations into the config, which will get surfaced indocker inspect
and easily found/searched/scripted etc.The text was updated successfully, but these errors were encountered: