Skip to content
Snippets Groups Projects
Commit 9bf22a3b authored by kaiyou's avatar kaiyou
Browse files

Add temporary infrastructure for running a tcp proxy

parent d4228e34
No related branches found
No related tags found
No related merge requests found
......@@ -78,10 +78,20 @@ var Start = &cobra.Command{
},
RunE: func(cmd *cobra.Command, args []string) error {
newArgs := append([]string{Run.Use}, os.Args[2:]...)
return selfcontain.RunWithArgs(&config.Container, newArgs)
// This is a hack while waiting for some refactoring in selfcontain
errChan := make(chan error)
go func() {
errChan <- selfcontain.RunWithArgs(&config.Container, newArgs)
}()
go apiserverForward(errChan)
return <-errChan
},
}
func apiserverForward(chan error) {
// do nothing for now
}
var Run = &cobra.Command{
Use: "run",
Short: "Actually run hepto inside the container",
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment