mirror of
https://github.com/opencontainers/runc.git
synced 2026-07-11 06:03:57 +08:00
Separate nsinit main from implementation. This is done inorder to package nsinit as part of docker binary.
Docker-DCO-1.1-Signed-off-by: Vishnu Kannan <vishnuk@google.com> (github: vishh)
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
package main
|
||||
package nsinit
|
||||
|
||||
import (
|
||||
"log"
|
||||
@@ -19,7 +19,7 @@ func preload(context *cli.Context) error {
|
||||
return nil
|
||||
}
|
||||
|
||||
func main() {
|
||||
func NsInit() {
|
||||
app := cli.NewApp()
|
||||
app.Name = "nsinit"
|
||||
app.Version = "0.1"
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
package main
|
||||
package nsinit
|
||||
|
||||
import (
|
||||
"encoding/json"
|
||||
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
package main
|
||||
package nsinit
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
package main
|
||||
package nsinit
|
||||
|
||||
import (
|
||||
"log"
|
||||
|
||||
@@ -0,0 +1,7 @@
|
||||
package main
|
||||
|
||||
import "github.com/docker/libcontainer/nsinit"
|
||||
|
||||
func main() {
|
||||
nsinit.NsInit()
|
||||
}
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
package main
|
||||
package nsinit
|
||||
|
||||
import (
|
||||
"log"
|
||||
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
package main
|
||||
package nsinit
|
||||
|
||||
import (
|
||||
"log"
|
||||
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
package main
|
||||
package nsinit
|
||||
|
||||
import (
|
||||
"encoding/json"
|
||||
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
package main
|
||||
package nsinit
|
||||
|
||||
import (
|
||||
"encoding/json"
|
||||
|
||||
Reference in New Issue
Block a user