-
Notifications
You must be signed in to change notification settings - Fork 876
NG: extension: webhooks #689
Comments
Please :). IPC that's more widely supported than libchan currently is
If the delay between steps five and six is too long, you could always |
Is there any workaround until the final feature is implemented ? |
@zedtux registry v1 (the currently released 0.9 version) supports extensions: https://github.com/docker/docker-registry/tree/master/docker_registry/extensions#docker-registry-extensions From there it should be easy to implement a webhook extension yourself. |
Thank you @dmp42 |
I have checked the document action and it seems that the |
I believe it does: https://github.com/docker/docker-registry/blob/0dd4fc818da236c3e5df8c6c87fd4f3da19492d7/docker_registry/index.py#L76 Am I missing something? |
Thank you. I have only checked the link you gave me where there isn't any parameters. Your second link looks much better 😃 |
OpenShift keeps track of Docker image metadata and can perform actions such as updating a deployment when it notices there's an updated image in a repository. We're currently doing this with the v1 registry using an extension we wrote that does an http post to OpenShift whenever there's a new tag. I'll second @wking's thoughts re the ability for a downstream client to request events from history. If we're unable to receive "new image" / "new tag" events in real time (e.g. our server is down, there's a network hiccup, or whatever), we'll need an efficient mechanism to reconcile OpenShift's view of all the Docker repositories it's watching with the actual state of those repositories. I suppose a single request to reconcile would be ideal (e.g. give me all the changes to all the repositories starting with event 123). Not sure how feasible that is. /cc @smarterclayton |
This issue has been superseded by distribution/distribution#42. Please take further conversation there. |
While the extension mechanism is still to be defined, maybe we could have webhooks as an extension, to further extend registry functionality?
That webhooks extension would listen on all core signals, and call whatever registered webhook for the corresponding signal?
The text was updated successfully, but these errors were encountered: