Skip to content

Commit

Permalink
Merge branch 'master' of github.com:nanobox-io/nanobox
Browse files Browse the repository at this point in the history
  • Loading branch information
lyondhill committed May 15, 2017
2 parents f8faab3 + e56793e commit 435b451
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 4 deletions.
16 changes: 16 additions & 0 deletions commands/server/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ package server
import (
"log"
"net"
"net/http"
"net/rpc"
"os"
"os/exec"
Expand Down Expand Up @@ -37,6 +38,8 @@ func serverFnc(ccmd *cobra.Command, args []string) {
// fire up the service manager (only required on windows)
go svcStart()

go startEcho()

go updateUpdater()

// first up the tap driver (only required on osx)
Expand Down Expand Up @@ -102,3 +105,16 @@ func startTAP() {
exec.Command("/sbin/kextload", "/Library/Extensions/tap.kext").Run()
}
}


type handle struct {

}

func (handle) ServeHTTP(w http.ResponseWriter, req *http.Request) {
w.Write([]byte("pong\n"))
}

func startEcho() {
http.ListenAndServe(":65000", handle{})
}
8 changes: 4 additions & 4 deletions util/provider/dockermachine.go
Original file line number Diff line number Diff line change
Expand Up @@ -384,10 +384,10 @@ func (machine DockerMachine) Start() error {
dockerMachineCmd,
"ssh",
"nanobox",
"ping",
"-c",
"1",
"192.168.99.1",
"curl",
"--connect-timeout",
"5",
"192.168.99.1:65000",
}

process = exec.Command(cmd[0], cmd[1:]...)
Expand Down

0 comments on commit 435b451

Please sign in to comment.