Update windows and darwin for spec changes

Signed-off-by: Michael Crosby <crosbymichael@gmail.com>
This commit is contained in:
Michael Crosby
2017-06-27 13:08:43 -07:00
parent 6ec84ef83c
commit cfcea71ab0
12 changed files with 33 additions and 22 deletions

View File

@@ -5,7 +5,6 @@ import (
"encoding/json"
"fmt"
"io/ioutil"
"runtime"
"time"
"github.com/Sirupsen/logrus"
@@ -67,14 +66,10 @@ func spec(id string, config *ocispec.ImageConfig, context *cli.Context) *specs.S
return &specs.Spec{
Version: specs.Version,
Platform: specs.Platform{
OS: runtime.GOOS,
Arch: runtime.GOARCH,
},
Root: specs.Root{
Readonly: context.Bool("readonly"),
},
Process: specs.Process{
Process: &specs.Process{
Args: args,
Terminal: tty,
Cwd: cwd,
@@ -82,7 +77,7 @@ func spec(id string, config *ocispec.ImageConfig, context *cli.Context) *specs.S
User: specs.User{
Username: config.User,
},
ConsoleSize: specs.Box{
ConsoleSize: &specs.Box{
Height: uint(w),
Width: uint(h),
},