17 #ifndef __DOCKER_EXECUTOR_HPP__ 18 #define __DOCKER_EXECUTOR_HPP__ 45 "The name of the docker container to run.");
49 "The path to the docker executable.");
53 "Resource used by the agent and the executor to provide CLI access\n" 54 "to the Docker daemon. On Unix, this is typically a path to a\n" 55 "socket, such as '/var/run/docker.sock'. On Windows this must be a\n" 56 "named pipe, such as '//./pipe/docker_engine'.");
60 "The path to the container sandbox holding stdout and stderr files\n" 61 "into which docker container logs will be redirected.");
65 "The sandbox directory path that is mapped in the docker container.");
70 "The duration for docker to wait after stopping a running container\n" 71 "before it kills that container. This flag is deprecated; use task's\n" 72 "kill policy instead.");
76 "Directory path of Mesos binaries. Mesos would find fetcher,\n" 77 "containerizer and executor binary files under this directory.");
81 "A JSON map of environment variables and values that should\n" 82 "be passed into the task launched by this executor.");
85 "default_container_dns",
86 "JSON-formatted default DNS information for container.");
90 "Cgroups feature flag to enable hard limits on CPU resources\n" 91 "via the CFS bandwidth limiting subfeature.\n",
111 class DockerExecutorProcess;
120 const std::string& sandboxDirectory,
121 const std::string& mappedDirectory,
122 const Duration& shutdownGracePeriod,
123 const std::string& launcherDir,
124 const std::map<std::string, std::string>& taskEnvironment,
126 bool cgroupsEnableCfs);
132 const ExecutorInfo& executorInfo,
133 const FrameworkInfo& frameworkInfo,
134 const SlaveInfo& slaveInfo)
override;
138 const SlaveInfo& slaveInfo)
override;
142 void launchTask(
ExecutorDriver* driver,
const TaskInfo& task)
override;
144 void killTask(
ExecutorDriver* driver,
const TaskID& taskId)
override;
146 void frameworkMessage(
148 const std::string& data)
override;
156 const TaskID& taskId,
167 #endif // __DOCKER_EXECUTOR_HPP__
Definition: executor.hpp:147
Definition: executor.hpp:114
Option< std::string > sandbox_directory
Definition: executor.hpp:98
Definition: duration.hpp:32
Option< std::string > docker
Definition: executor.hpp:96
Option< Duration > stop_timeout
Definition: executor.hpp:107
Definition: executor.hpp:75
Option< std::string > mapped_directory
Definition: executor.hpp:99
Option< std::string > container
Definition: executor.hpp:95
Result< Process > process(pid_t pid)
Definition: freebsd.hpp:30
Definition: attributes.hpp:24
Option< std::string > launcher_dir
Definition: executor.hpp:100
std::string error(const std::string &msg, uint32_t code)
Flags()
Definition: executor.hpp:42
void add(T1 Flags::*t1, const Name &name, const Option< Name > &alias, const std::string &help, const T2 *t2, F validate)
Definition: flags.hpp:333
Option< std::string > task_environment
Definition: executor.hpp:101
Option< std::string > default_container_dns
Definition: executor.hpp:102
bool cgroups_enable_cfs
Definition: executor.hpp:104
Definition: executor.hpp:40
Option< std::string > docker_socket
Definition: executor.hpp:97