Merge pull request #569 from crosbymichael/linux-builtin
Change linux runtime(w shim) to builtin
This commit is contained in:
commit
f4715533da
6 changed files with 4 additions and 15 deletions
|
@ -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"
|
||||
)
|
||||
|
|
|
@ -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/
|
|
@ -1,4 +1,4 @@
|
|||
package main
|
||||
package linux
|
||||
|
||||
import (
|
||||
"github.com/docker/containerd"
|
||||
|
|
|
@ -1,5 +0,0 @@
|
|||
package main
|
||||
|
||||
func main() {
|
||||
panic("build as plugin not executable")
|
||||
}
|
|
@ -1,4 +1,4 @@
|
|||
package main
|
||||
package linux
|
||||
|
||||
import (
|
||||
"bytes"
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
package main
|
||||
package linux
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
|
|
Loading…
Reference in a new issue