You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@mesos.apache.org by "Yan Xu (JIRA)" <ji...@apache.org> on 2015/08/04 02:38:05 UTC
[jira] [Commented] (MESOS-2968) Implement shared copy based
provisioner backend
[ https://issues.apache.org/jira/browse/MESOS-2968?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14652859#comment-14652859 ]
Yan Xu commented on MESOS-2968:
-------------------------------
[~tnachen] If we define the Backend as not provisioning images but rather provisioning a list of {{rootfs}}, then we can define the API as
{code}
class Backend
{
...
virtual process::Future<Nothing> provision(
const std::vector<Path>& roots,
const Path& directory) = 0;
}
{code}
The caller is responsible for figuring out how the layers should be resolved and ordered in this list. This way the {{Backend}} can be unified for AppC and Docker. How does it sound?
BTW I think {{Backend::provision()}} can be confused with Provisioner::provision() and the word {{Backend}} is not as self-documenting as {{Installer::installer()}}. What do you think?
/cc [~idownes]
> Implement shared copy based provisioner backend
> -----------------------------------------------
>
> Key: MESOS-2968
> URL: https://issues.apache.org/jira/browse/MESOS-2968
> Project: Mesos
> Issue Type: Improvement
> Components: containerization
> Reporter: Timothy Chen
> Assignee: Timothy Chen
> Labels: mesosphere
>
> Currently Appc and Docker both implemented its own copy backend, but most of the logic is the same where the input is just a image name with its dependencies.
> We can refactor both so that we just have one implementation that is shared between both provisioners, so appc and docker can reuse the shared copy backend.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)