Ejemplo n.º 1
0
// startServer begins the main Kurma RPC server and will take over execution.
func (r *runner) startServer() error {
	opts := &server.Options{
		ContainerManager: r.manager,
	}

	s := server.New(opts)
	go s.Start()
	return nil
}
Ejemplo n.º 2
0
func main() {
	logray.AddDefaultOutput("stdout://", logray.ALL)

	directory, err := os.Getwd()
	if err != nil {
		panic(err)
	}

	opts := &server.Options{
		ParentCgroupName:   "kurma",
		ContainerDirectory: directory,
		RequiredNamespaces: []string{"ipc", "mount", "pid", "uts"},
	}

	s := server.New(opts)
	if err := s.Start(); err != nil {
		panic(err)
	}
}