[
https://issues.apache.org/jira/browse/MESOS-2588?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14512921#comment-14512921
]
haosdent edited comment on MESOS-2588 at 4/26/15 7:33 AM:
----------------------------------------------------------
[~tnachen]Is it ok to implement this through change ?
{code}
Future<bool> DockerContainerizerProcess::launch(
const ContainerID& containerId,
const TaskInfo& taskInfo,
const ExecutorInfo& executorInfo,
const string& directory,
const Option<string>& user,
const SlaveID& slaveId,
const PID<Slave>& slavePid,
bool checkpoint)
{code}
to
{code}
Future<bool> DockerContainerizerProcess::launch(
const ContainerID& containerId,
const TaskInfo& taskInfo,
const ExecutorInfo& executorInfo,
const string& directory,
const string& preHookScript,
const Option<string>& user,
const SlaveID& slaveId,
const PID<Slave>& slavePid,
bool checkpoint)
{code}
Another problem is the type of preHook should be a script or a function?
was (Author: [email protected]):
[~tnachen]It is ok to implement this through change
{code}
Future<bool> DockerContainerizerProcess::launch(
const ContainerID& containerId,
const TaskInfo& taskInfo,
const ExecutorInfo& executorInfo,
const string& directory,
const Option<string>& user,
const SlaveID& slaveId,
const PID<Slave>& slavePid,
bool checkpoint)
{code}
to
{code}
Future<bool> DockerContainerizerProcess::launch(
const ContainerID& containerId,
const TaskInfo& taskInfo,
const ExecutorInfo& executorInfo,
const string& directory,
const string& preHookScript,
const Option<string>& user,
const SlaveID& slaveId,
const PID<Slave>& slavePid,
bool checkpoint)
{code}
Another problem is the type of preHook should be a script or a function?
> Create pre-create hook before a Docker container launches
> ---------------------------------------------------------
>
> Key: MESOS-2588
> URL: https://issues.apache.org/jira/browse/MESOS-2588
> Project: Mesos
> Issue Type: Bug
> Components: docker
> Reporter: Timothy Chen
> Assignee: haosdent
>
> To be able to support custom actions to be called before launching a docker
> contianer, we should create a hook that can be extensible and allow
> module/hooks to be performed before a docker container is launched.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)