Hi,

we (http://sloppy.io) use https://github.com/ClusterHQ/powerstrip for pre/post hooks and it is running smooth for a long time now. We start many containers a day and powerstrip as a docker proxy is involved in every start.


Best,

Mike

Am 08.08.2015 um 10:01 schrieb Kapil Malik:

… posting in a fresh thread

Hi,

We have a usecase to run multi-user workloads on mesos. Users provide docker images encapsulating application logic, which we (we = say some “Central API”) schedule on Chronos / Marathon. However, we need to run some standard pre / post steps for every docker submitted by users. We have following options –

1.Ask every user to embed their logic inside a pre-defined docker template which will perform pre/post steps.

èThis is error prone, makes us dependent on whether the users followed template, and not very popular with users either.

2.Extend every user docker (FROM <>) and find a way to add pre-post steps in our docker. Refer this docker when scheduling on chronos / marathon.

èBuilding new dockers does not scale as users and applications grow

3.Write a custom executor which will perform the pre-post steps and manage the user docker lifetime.

èDeals with user docker lifetime and is obviously complex.

Is there a standard / openly available DockerExecutor which manages the docker lifetime and which I can extend to build my custom executor?

For instance, do you suggest extending https://github.com/apache/mesos/blob/master/src/docker/executor.cpp as a starting point? Can I access it in Java?

This way I will be concerned only with my custom logic (pre/post steps) and still get benefits of a standard way to manage docker containers.

Thanks and regards,

Kapil Malik | [email protected] <mailto:[email protected]> | 33430 / 8800836581


Reply via email to