axiqia commented on issue #4197: unable to invoke action by docker URL: https://github.com/apache/incubator-openwhisk/issues/4197#issuecomment-451427658 > The `dockerskeleton` base image is useful for actions that run scripts (e.g., bash, perl, python) and compiled binaries or, more generally, any native executable. It provides a proxy service (using Flask, a Python web microframework) that implements the required `/init` and `/run` routes to interact with the OpenWhisk invoker service. The implementation of these routes is encapsulated in a class named `ActionRunner` which provides a basic framework for receiving code from an invoker, preparing it for execution, and then running the code when required. An implementation of the runner for Python actions is available [here](https://github.com/apache/incubator-openwhisk-runtime-python/blob/master/core/pythonAction/pythonrunner.py). ``` class PythonRunner(ActionRunner): def __init__(self): ActionRunner.__init__(self, '/action/__main__.py') self.fn = None self.mainFn = 'main' self.global_context = {} ``` **So the python scripts much be named as `__main__.py`.**
---------------------------------------------------------------- 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
