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:
parent
994aebc698
commit
e693cad926
6 changed files with 4 additions and 15 deletions
|
@ -2,6 +2,7 @@ package main
|
||||||
|
|
||||||
// register containerd builtins here
|
// register containerd builtins here
|
||||||
import (
|
import (
|
||||||
|
_ "github.com/docker/containerd/linux"
|
||||||
_ "github.com/docker/containerd/services/content"
|
_ "github.com/docker/containerd/services/content"
|
||||||
_ "github.com/docker/containerd/services/execution"
|
_ "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 (
|
import (
|
||||||
"github.com/docker/containerd"
|
"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 (
|
import (
|
||||||
"bytes"
|
"bytes"
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
package main
|
package linux
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"fmt"
|
"fmt"
|
||||||
|
|
Loading…
Reference in a new issue