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:
parent
77c5125e87
commit
28dadc538c
|
@ -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,4 +1,4 @@
|
|||
package main
|
||||
package nsinit
|
||||
|
||||
import (
|
||||
"encoding/json"
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
package main
|
||||
package nsinit
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
|
|
|
@ -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,4 +1,4 @@
|
|||
package main
|
||||
package nsinit
|
||||
|
||||
import (
|
||||
"log"
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
package main
|
||||
package nsinit
|
||||
|
||||
import (
|
||||
"log"
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
package main
|
||||
package nsinit
|
||||
|
||||
import (
|
||||
"encoding/json"
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
package main
|
||||
package nsinit
|
||||
|
||||
import (
|
||||
"encoding/json"
|
||||
|
|
Loading…
Reference in New Issue