Refactor to add oci and util packages
Signed-off-by: Mrunal Patel <mrunalp@gmail.com> Change the sandbox directory path Signed-off-by: Mrunal Patel <mrunalp@gmail.com>
This commit is contained in:
parent
839463d837
commit
ac1340488d
7 changed files with 101 additions and 76 deletions
|
@ -23,9 +23,14 @@ func main() {
|
|||
app.Flags = []cli.Flag{
|
||||
cli.StringFlag{
|
||||
Name: "sandboxdir",
|
||||
Value: "/var/lib/ocid/sandbox",
|
||||
Value: "/var/lib/ocid/sandboxes",
|
||||
Usage: "ocid pod sandbox dir",
|
||||
},
|
||||
cli.StringFlag{
|
||||
Name: "runtime",
|
||||
Value: "/usr/bin/runc",
|
||||
Usage: "OCI runtime path",
|
||||
},
|
||||
}
|
||||
|
||||
app.Action = func(c *cli.Context) error {
|
||||
|
@ -43,7 +48,7 @@ func main() {
|
|||
s := grpc.NewServer()
|
||||
|
||||
sandboxDir := c.String("sandboxdir")
|
||||
service, err := server.New("", sandboxDir)
|
||||
service, err := server.New(c.String("runtime"), sandboxDir)
|
||||
if err != nil {
|
||||
log.Fatal(err)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue