You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@mesos.apache.org by "Joris Bonnefoy (JIRA)" <ji...@apache.org> on 2017/06/23 14:21:00 UTC

[jira] [Commented] (MESOS-7141) Support hook scripts to customize actions for container's lifecycle

    [ 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)