2019-03-31 21:20:34 UTC - Vikash: Hey, I was trying to invoke an action in 
openwhisk with docker image accepting parameters
while action invokation.

Here is the docker image
FROM ubuntu
WORKDIR ~
COPY test.py ./
RUN apt-get update
RUN apt install python3-pip -y
RUN pip3 install couchdb
RUN pip3 install minio
RUN pip3 install ruamel.yaml
RUN pip3 install Pillow
RUN pip3 install kafka-python
RUN pip3 install kafka
CMD ["python3", "./test.py"]


The function used in the image(test.py)

def main(dict):
  if 'name' in dict:
      name = dict['name']
  else:
      name = "stranger"
  greeting = "Hello " + name + "!"
  return {"greeting": greeting}

Command I used to create action

wsk -i action create testAction --docker paritoshshirodkar/nameimage

While invoking the action using

wsk -i action invoke testAction -P Param.json

Content of param.json

{
    "name":"Paritosh"
}
https://openwhisk-team.slack.com/archives/C3TPCAQG1/p1554067234037000
----
2019-03-31 21:20:50 UTC - Vikash: I get the below error
https://openwhisk-team.slack.com/archives/C3TPCAQG1/p1554067250037300
----
2019-03-31 21:21:36 UTC - Vikash: 
https://openwhisk-team.slack.com/archives/C3TPCAQG1/p1554067296037400
----
2019-03-31 21:21:46 UTC - Vikash: 
https://openwhisk-team.slack.com/archives/C3TPCAQG1/p1554067306037700
----
2019-03-31 21:22:03 UTC - Vikash: 
https://openwhisk-team.slack.com/archives/C3TPCAQG1/p1554067323038000
----
2019-03-31 21:22:09 UTC - Vikash: 
https://openwhisk-team.slack.com/archives/C3TPCAQG1/p1554067329038300
----
2019-03-31 21:22:30 UTC - Vikash: Can anyone please help me out with this?
https://openwhisk-team.slack.com/archives/C3TPCAQG1/p1554067350038800
----
2019-03-31 21:23:53 UTC - Carlos Santana: Init took 64 seconds
https://openwhisk-team.slack.com/archives/C3TPCAQG1/p1554067433039200
----
2019-03-31 21:24:02 UTC - Carlos Santana: Timeout is set to 60 seconds 
https://openwhisk-team.slack.com/archives/C3TPCAQG1/p1554067442039600
----
2019-03-31 21:24:09 UTC - Carlos Santana: The action timed out 
https://openwhisk-team.slack.com/archives/C3TPCAQG1/p1554067449039900
----
2019-03-31 21:24:40 UTC - Carlos Santana: Try increasing timeout with CLI 
action update —timeout <seconds>
https://openwhisk-team.slack.com/archives/C3TPCAQG1/p1554067480040800
----
2019-03-31 21:43:07 UTC - Vikash: @Carlos Santana I tried increasing the 
timeout but still it throws an error
https://openwhisk-team.slack.com/archives/C3TPCAQG1/p1554068587042400
----
2019-03-31 21:43:22 UTC - Vikash: 
https://openwhisk-team.slack.com/archives/C3TPCAQG1/p1554068602042500
----

Reply via email to