... 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