You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mesos.apache.org by ji...@apache.org on 2016/08/15 18:54:51 UTC
[2/3] mesos git commit: Added a containerizer launch interface to
launch sub-containers.
Added a containerizer launch interface to launch sub-containers.
Review: https://reviews.apache.org/r/51100
Project: http://git-wip-us.apache.org/repos/asf/mesos/repo
Commit: http://git-wip-us.apache.org/repos/asf/mesos/commit/075256be
Tree: http://git-wip-us.apache.org/repos/asf/mesos/tree/075256be
Diff: http://git-wip-us.apache.org/repos/asf/mesos/diff/075256be
Branch: refs/heads/master
Commit: 075256be901c991e12735f586bf3ee43adc520aa
Parents: 61fd1e0
Author: Jie Yu <yu...@gmail.com>
Authored: Mon Aug 15 10:50:16 2016 -0700
Committer: Jie Yu <yu...@gmail.com>
Committed: Mon Aug 15 11:54:45 2016 -0700
----------------------------------------------------------------------
src/slave/containerizer/containerizer.hpp | 11 +++++++++++
1 file changed, 11 insertions(+)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/mesos/blob/075256be/src/slave/containerizer/containerizer.hpp
----------------------------------------------------------------------
diff --git a/src/slave/containerizer/containerizer.hpp b/src/slave/containerizer/containerizer.hpp
index 14f298e..bf39aaa 100644
--- a/src/slave/containerizer/containerizer.hpp
+++ b/src/slave/containerizer/containerizer.hpp
@@ -90,6 +90,17 @@ public:
const std::map<std::string, std::string>& environment,
bool checkpoint) = 0;
+ // Launch a nested container.
+ // TODO(jieyu): Consider combining with the 'launch' above.
+ virtual process::Future<Nothing> launch(
+ const ContainerID& containerId,
+ const CommandInfo& commandInfo,
+ const Option<ContainerInfo>& containerInfo,
+ const Resources& resources)
+ {
+ return process::Failure("Unsupported");
+ }
+
// Update the resources for a container.
virtual process::Future<Nothing> update(
const ContainerID& containerId,