-
Notifications
You must be signed in to change notification settings - Fork 71
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
RFC for additional metadata for app #9
Conversation
I want think about the finer points some more, it in general I’m a fan of this idea. Thanks for writing it up! |
@sclevine - we've revised the RFC following your comments in our discussion on Monday. It now proposes a new |
@sclevine We have made changes to the RfC to reflect our chat about updating the How It Works section. This RfC should be good to vote on now. |
Currently this proposal doesn't describe optionality or extensibility of this and probably needs to. Consider the following cases:
|
How about something like this: Label: Git: {
"id": "60d5fb7a7ad7c3b357a9d783b740f765d2a0d4d5",
"type": "git",
"metadata": {
"commit": "60d5fb7a7ad7c3b357a9d783b740f765d2a0d4d5",
"refs": ["master", "v3.0"],
"url": "https://github.com/example/source"
}
} Source upload: {
"id": "146c4bce42545e6a4575283b32a7f01924ef86ce848273079693a42b52b27321",
"type": "image",
"metadata": {
"digest": "146c4bce42545e6a4575283b32a7f01924ef86ce848273079693a42b52b27321",
"path": "/source",
"repository": "hub.docker.io/example/image",
"refs": ["example/image:mytag"]
}
} Where |
In Concourse the comparable concept to But occasionally it's necessary to use multiple fields to properly specify the version. The PR resource does this by including the PR number, repository and git commit as keys on each version. |
I like @sclevine's idea in principle, it feels nicely extendable. But it feels as if this "wheel" should have been invented somewhere else before (wishful thinking maybe?!). If we're to develop this metadata for source code identification for other (non-git) systems (present and/or future), then I think we should try to explore whether there's an existing standard ontology that we can adopt. A quick search surfaced the following existing work or bodies working on software identification ontologies:
However, at first glance I don't think they even particularly suit referencing commits within branches for git. One of the recommendations in the Force11 principle is to use DOI's, which feel like a layer of indirection. I'm not sure if there's something else out there; perhaps copying other software (as in @jchesterpivotal suggestion to follow Concourse's standards) to converge towards a de facto standard? |
SPDX and CycloneDX also have relevant standards (and rely on other standards like Package URL, which I believe can refer to git commits). In general, I agree that if there's a good standard we can adopt, we ought to. |
Not sure if I like this better (as I think there are advantages to a single unique string for the version), but here's a concourse-like version: Git:
Source:
|
@iainsproat I think the above format addresses the concerns raised, as long as the metadata is clearly optional. Are you willing to update this RFC accordingly? |
Amended formatting to make questions separate and distinct from responses.
Adds additional alternative and improves formatting and structure of pro/con of alternatives.
Renames `sha` to `ref`.
[#166813918] Signed-off-by: Shane Huston <[email protected]>
Thanks Stephen. It's in our backlog to update this RFC, we'll make the
changes soon (hopefully within the next couple of days).
…On Fri, Jul 12, 2019 at 3:49 AM Stephen Levine ***@***.***> wrote:
@iainsproat <https://github.com/iainsproat> I think the above format
addresses the concerns raised, as long as the metadata is clearly optional.
Are you willing to update this RFC accordingly?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#9>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAAQYMMUUBAISZXDHZ6CREDP67WLZANCNFSM4HWT7URQ>
.
|
[#167256379] Signed-off-by: Christian Mc Carthy <[email protected]>
@sclevine We have a question about the source information. Currently, buildpacks build images according to a single source repo. Is there any necessity to extend this to multiple sources? Eg having the label named |
Overall, I like where this RFC is going. @cmccarthy101 For multiple sources are these sources mirrors or multiple sources needed to construct the image? |
@hone - these would be multiple sources needed to construct the image. |
This is a proposal to allow additional metadata related to the app to be provided and exported to the image manifest.