[
https://issues.apache.org/jira/browse/MESOS-7141?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16060966#comment-16060966
]
Joris Bonnefoy commented on MESOS-7141:
---------------------------------------
Nice feature. We already implemented it in our custom executor at OVH. You can
take a look at the Go implementation here:
https://github.com/Devatoria/go-mesos-executor
It is explained in the readme. The idea is to be able to deactivate some hooks
if needed. We also have precreate and prestop hooks.
> Support hook scripts to customize actions for container's lifecycle
> -------------------------------------------------------------------
>
> Key: MESOS-7141
> URL: https://issues.apache.org/jira/browse/MESOS-7141
> Project: Mesos
> Issue Type: Task
> Components: containerization
> Reporter: Jason Lai
> Assignee: Jason Lai
> Labels: containerizer, hooks
>
> Inspired by [hooks |
> https://github.com/opencontainers/runtime-spec/blob/master/config.md#hooks]
> in [OCI's runtime spec | https://github.com/opencontainers/runtime-spec], it
> would be great to have scripts hooked into the lifecycle of containers.
> The OCI doc has specified 3 stages for hooking:
> * Prestart
> * Poststart
> * Poststop
> We can consider having the 3 stages to start with.
--
This message was sent by Atlassian JIRA
(v6.4.14#64029)