You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@openwhisk.apache.org by gi...@git.apache.org on 2017/10/02 23:21:23 UTC

[GitHub] alexkli opened a new issue #58: [docker-compose] calling openwhisk from action fails because api host is set to "localhost"

alexkli opened a new issue #58: [docker-compose] calling openwhisk from action fails because api host is set to "localhost"
URL: https://github.com/apache/incubator-openwhisk-devtools/issues/58
 
 
   Using the openwhisk() client to e.g. call other actions from one action fails in the current docker-compose setup, as it will get the api host set to `localhost`, but it must be the external hostname or IP of the docker host or where the OW API controller is running.
   
   Environment variables involved:
   * `WHISK_API_HOST_NAME` in `docker-compose.yml` is set to `DOCKER_COMPOSE_HOST`
   * `DOCKER_COMPOSE_HOST` is set to `DOCKER_HOST_IP` in the `Makefile`
   * `DOCKER_HOST_IP` will usually be set to `localhost` if the docker environment does not set a `DOCKER_HOST`, which seems like the common case, at least with Docker for Mac (this parsing & fallback is done at top of the `Makefile`)
   
   In addition, `WHISK_API_HOST_NAME` is set to `https://${DOCKER_COMPOSE_HOST}` where the `https://` is a duplication that needs to be removed.
 
----------------------------------------------------------------
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