Change linux runtime(w shim) to builtin

Because of the plugin findings and having the default runtime builtin
this makes it much better for development and testing.

Signed-off-by: Michael Crosby <crosbymichael@gmail.com>
This commit is contained in:
Michael Crosby 2017-02-24 15:50:59 -08:00
parent 994aebc698
commit e693cad926
6 changed files with 4 additions and 15 deletions

View File

@ -2,6 +2,7 @@ package main
// register containerd builtins here
import (
_ "github.com/docker/containerd/linux"
_ "github.com/docker/containerd/services/content"
_ "github.com/docker/containerd/services/execution"
)

View File

@ -1,7 +0,0 @@
all:
go build -buildmode=plugin -o shim-linux-amd64.so
install:
mkdir -p /var/lib/containerd/plugins
cp shim-linux-amd64.so /var/lib/containerd/plugins/

View File

@ -1,4 +1,4 @@
package main
package linux
import (
"github.com/docker/containerd"

View File

@ -1,5 +0,0 @@
package main
func main() {
panic("build as plugin not executable")
}

View File

@ -1,4 +1,4 @@
package main
package linux
import (
"bytes"

View File

@ -1,4 +1,4 @@
package main
package linux
import (
"fmt"