-
Notifications
You must be signed in to change notification settings - Fork 32
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
Hook into the docker event stream #38
Comments
Thinking about it - an adapter could hook into the event stream of its own accord (providing the docker socket is mounted into the adapter container). Probably better than polluting the adapters.yml with another section, not sure - will leave this here for feedback anyway. |
There is a big advantage to effectively turning the event stream into webhooks. My preferred API would be having an adapter endpoint used to POST events to. |
It would be nice to have this function in Powerstrip -- I think that in general any plugin that cares about creation events will also have a need to capture deletion events too, and so having the code in Powerstrip will prevent clients from having to re-invent the wheel. Have you done any more detailed thinking on how to implement this? I might take a look at this in a few weeks. |
It would be reasonable to expose them as their own hook request, but I On Thu, Mar 19, 2015 at 5:08 PM, Paul Tiplady [email protected]
Jeff Lindsay |
If powerstrip listened to the docker event stream - it means adapters could be configured to be told when a container dies (or any other event that is not the result of a docker HTTP api call).
The
adapters.yml
would need another section - something likeevents
perhaps:The payload could be something like:
The main point is to allow adapters to know that a container has died on its own rather than as a result of a HTTP request generated by the docker client.
Just something that cropped up in my head - it might be out of the scope of powerstrip not sure?
The text was updated successfully, but these errors were encountered: