TritonDataCenter / sdc-docker

Docker Engine for Triton
Mozilla Public License 2.0
183 stars 49 forks source link

Feature: Provide notification hooks when container starts/stops #41

Open gansbrest opened 9 years ago

gansbrest commented 9 years ago

It would be nice to have some webhooks support for container registration purposes ( consul, etcd etc ). Since within Triton Docker host is abstracted, we need "service" aka Triton wise notifications with some container metadata, so we could remove service registration process from docker containers which is not 100% reliable and error prone ( moving towards thin containers here ).

I guess it's similar in concepts to Registrator https://github.com/gliderlabs/registrator where it would listen for docker host and then notify on container start/stop. The diff here is that docker host is abstracted away within Triton.

trentm commented 9 years ago

FWIW https://smartos.org/bugview/DOCKER-72 is to implement "docker events" in triton, which would enable a user to setup processing on starts/stops. Granted supporting webhooks on some events would be a nice feature addition to triton.

sourcec0de commented 8 years ago

@trentm is there any progress on this one. I am planning on using triton for a new project and the docker events api would make life a lot easier.

I would love to contribute to help move this along. PR's talk BS walks. :D If you guys are open to contributions just point me in the right direction.