Skip to content
This repository has been archived by the owner on Aug 14, 2020. It is now read-only.

common: add additional docker informations to manifest. #78

Merged
merged 1 commit into from
Aug 10, 2015

Conversation

sgotti
Copy link
Member

@sgotti sgotti commented Aug 7, 2015

This patch tries to implement the idea from #15.

This adds additional docker informations to the image manifest.
Now the v1 registry informations are added under the appc.io/docker/v1/
namespace:

appc.io/docker/v1/indexurl
appc.io/docker/v1/repository
appc.io/docker/v1/tag
appc.io/docker/v1/imageid
appc.io/docker/v1/parentimageid

Before adding a WELLKNOWN.md like proposed I'd like to get suggestions on the annotation names. For example indexurl should be registryurl?

This can be useful for getting docker v1 caching infos like proposed in rkt/rkt#1196 (comment) without the need to save the imageID info in a store sql table.

AppcDockerV1Repository = "appc.io/docker/v1/repository"
AppcDockerV1Tag = "appc.io/docker/v1/tag"
AppcDockerV1ImageID = "appc.io/docker/v1/imageid"
AppcDockerV1ParentImageID = "appc.io/docker/v1/parentimageid"
Copy link
Member

Choose a reason for hiding this comment

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

Why are they exported?

Copy link
Member Author

Choose a reason for hiding this comment

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

I was thinking to export them for use by rkt but this doesn't make much sense. I'll make them unexported.

@iaguis
Copy link
Member

iaguis commented Aug 10, 2015

Just a small nit, can you s/informations/information, please?

Then it's good to merge.

@sgotti
Copy link
Member Author

sgotti commented Aug 10, 2015

@iaguis sure thanks! What do you think about the names (for example indexurl vs registerurl)?

@iaguis
Copy link
Member

iaguis commented Aug 10, 2015

Hmm... now that you mention it I think we should use registryurl since that's what we use in the documentation and what docker uses everywhere currently.

This adds additional docker information to the image manifest.
Now the v1 registry information are added under the `appc.io/docker/v1/`
namespace:

`appc.io/docker/v1/indexurl`
`appc.io/docker/v1/repository`
`appc.io/docker/v1/tag`
`appc.io/docker/v1/imageid`
`appc.io/docker/v1/parentimageid`
@sgotti
Copy link
Member Author

sgotti commented Aug 10, 2015

Done!

@iaguis
Copy link
Member

iaguis commented Aug 10, 2015

Cool. Thanks!

iaguis added a commit that referenced this pull request Aug 10, 2015
common: add additional docker informations to manifest.
@iaguis iaguis merged commit 80b5629 into appc:master Aug 10, 2015
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants