You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@openwhisk.apache.org by GitBox <gi...@apache.org> on 2018/11/30 04:55:41 UTC
[GitHub] chetanmeh commented on a change in pull request #4142: tools/dev -
updated intellij script to accommodate docker-compose
chetanmeh commented on a change in pull request #4142: tools/dev - updated intellij script to accommodate docker-compose
URL: https://github.com/apache/incubator-openwhisk/pull/4142#discussion_r237744743
##########
File path: tools/dev/src/main/groovy/intellijRunConfig.groovy
##########
@@ -57,13 +58,22 @@ Map controllerEnv = null
Map invokerEnv = null
containerNames.each{cn ->
+
//Inspect the specific container
def inspectResult = "docker inspect $cn".execute().text
def json = new JsonSlurper().parseText(inspectResult)
def imageName = json[0].'Config'.'Image'
if (imageName.contains("controller") || imageName.contains("invoker")){
- def mappedPort = json.'NetworkSettings'.'Ports'.'8080/tcp'[0][0].'HostPort'
+ // extract all the ports exposed by this container
+ def hostPorts = []
+ def mappedPort = json[0].'NetworkSettings'.'Ports'.each{ port, portValue ->
Review comment:
Need not initialize `mappedPort` here as its being overridden later in line 76
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
With regards,
Apache Git Services