Windows: Graph remove custom interface and add central store

Signed-off-by: Stefan J. Wernli <swernli@microsoft.com>

Windows: add support for images stored in alternate location.

Signed-off-by: Stefan J. Wernli <swernli@microsoft.com>
This commit is contained in:
Stefan J. Wernli
2015-08-14 23:45:53 -07:00
committed by John Howard
parent 424fa59859
commit dfbb5520e3
16 changed files with 546 additions and 636 deletions
+7 -1
View File
@@ -9,6 +9,7 @@ import (
"errors"
"fmt"
"os"
"path/filepath"
"strconv"
"strings"
@@ -100,8 +101,13 @@ func (d *Driver) Run(c *execdriver.Command, pipes *execdriver.Pipes, startCallba
}
for i := 0; i < len(c.LayerPaths); i++ {
_, filename := filepath.Split(c.LayerPaths[i])
g, err := hcsshim.NameToGuid(filename)
if err != nil {
return execdriver.ExitStatus{ExitCode: -1}, err
}
cu.Layers = append(cu.Layers, layer{
ID: hcsshim.NewGUID(c.LayerPaths[i]).ToString(),
ID: g.ToString(),
Path: c.LayerPaths[i],
})
}