You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@openwhisk.apache.org by OpenWhisk Team Slack <ra...@apache.org> on 2019/05/24 07:57:00 UTC

[slack-digest] [2019-05-23] #general

2019-05-23 11:15:47 UTC - Chirag Agarwal: Hello! Newbie to OpenWhisk here.
I am running OpenWhisk on a docker on mac and tried to write a function that calls my local mysql. It is unable to connect to local mysql. Can anyone help me with troubleshooting?
https://openwhisk-team.slack.com/archives/C3TPCAQG1/p1558610147173000
----
2019-05-23 11:30:49 UTC - James Thomas: @Chirag Agarwal what ip or hostname are you trying to connect to?
https://openwhisk-team.slack.com/archives/C3TPCAQG1/p1558611049173400
----
2019-05-23 11:30:58 UTC - James Thomas: *random guess* you’re trying to use localhost?
https://openwhisk-team.slack.com/archives/C3TPCAQG1/p1558611058173700
----
2019-05-23 11:31:44 UTC - Chirag Agarwal: Yes. Localhost
https://openwhisk-team.slack.com/archives/C3TPCAQG1/p1558611104173900
----
2019-05-23 11:31:50 UTC - Chirag Agarwal: @James Thomas ^
https://openwhisk-team.slack.com/archives/C3TPCAQG1/p1558611110174100
----
2019-05-23 11:38:40 UTC - James Thomas: so localhost in the openwhisk container is not going to be localhost on your machine
https://openwhisk-team.slack.com/archives/C3TPCAQG1/p1558611520174600
----
2019-05-23 11:39:14 UTC - James Thomas: I’m not super familiar with how the docker on mac works but you’ll need to just the ip address or hostname docker exposes the local machine to the containers with
100 : Dominic Kim
+1 : Chirag Agarwal
https://openwhisk-team.slack.com/archives/C3TPCAQG1/p1558611554175300
----
2019-05-23 11:44:51 UTC - Chirag Agarwal: Thanks. That resolved my issue. Used this to understand better: <https://stackoverflow.com/questions/24319662/from-inside-of-a-docker-container-how-do-i-connect-to-the-localhost-of-the-mach>
https://openwhisk-team.slack.com/archives/C3TPCAQG1/p1558611891175800
----