Skip to content

Commit

Permalink
Update tesseract version and add dynamic port assign
Browse files Browse the repository at this point in the history
  • Loading branch information
junbeomlee committed Nov 1, 2018
1 parent c94e56b commit 08b8e26
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
7 changes: 5 additions & 2 deletions Gopkg.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Gopkg.toml
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ ignored = ["github.com/mock/handler"]

[[constraint]]
name = "github.com/it-chain/tesseract"
version = "0.4.1"
version = "0.4.4"

[[constraint]]
name = "github.com/it-chain/yggdrasill"
Expand Down
2 changes: 1 addition & 1 deletion ivm/infra/tesseract/container_service.go
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ func (cs ContainerService) createDockerConfig(icode ivm.ICode) (tesseract.Contai
func (cs ContainerService) createHostMachineConfig(icode ivm.ICode) (tesseract.ContainerConfig, error) {
hostIp := "0.0.0.0"

port, err := getPort("127.0.0.1", "50000")
port, err := container.GetAvailablePort()
if err != nil {
return tesseract.ContainerConfig{}, err
}
Expand Down

0 comments on commit 08b8e26

Please sign in to comment.