axiqia commented on issue #4197: unable to invoke action by docker 
URL: 
https://github.com/apache/incubator-openwhisk/issues/4197#issuecomment-451392311
 
 
   @rabbah 
   I use pythonAction 
[here](https://github.com/apache/incubator-openwhisk-runtime-python/blob/master/core/pythonAction/Dockerfile)
 to build a docker image, and try to pass a zip file to invoke a action, but 
there is something wrong.
   1. `wget 
https://raw.githubusercontent.com/apache/incubator-openwhisk-runtime-python/master/core/pythonAction/Dockerfile`
   2.  `wget 
https://raw.githubusercontent.com/apache/incubator-openwhisk-runtime-python/master/core/pythonAction/pythonrunner.py`
   3. `buildAndPush.sh axiqia/python3`
   4. `cat exec.py `
   ```
   def main(args):
       name = args.get("name", "stranger")
       greeting = "Hello " + name + "!"
       print(greeting)
       return {"greeting": greeting}
   ```
   5. `zip exec.zip exec`
   6. `wsk action create example exec.zip --docker axiqia/python3`
   7.  `wsk action invoke --result example  --param name World` 
   ```
   {
       "error": "The action failed to generate or locate a binary. See logs for 
details."
   }
   ```
   
   
   
   

----------------------------------------------------------------
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:
[email protected]


With regards,
Apache Git Services

Reply via email to