Base Docker to execute UbiFunction python actions
100K+
Base Docker to execute UbiFunction python actions. Based on the original IBM Openwhisk action runner: https://github.com/ibm-functions/runtime-python.
The runtime is based on python3.7, older versions are not supported.
Default Python packages supported by the container
Write a simple function and save it as hello.py
def main(args):
name = args.get("name", "stranger")
greeting = "Hello " + name + "!"
print(greeting)
return {"greeting": greeting}
To use as a python kind action
ibmcloud wsk action create helloPython hello.py --kind python:3.7
Invoke the action
ibmcloud wsk action invoke helloPython
To use as a docker action based on this container
ibmcloud wsk action update helloPython hello.py --docker ubidots/docker-ubifunction-python3action
Content type
Image
Digest
sha256:7c9f04f09…
Size
790.2 MB
Last updated
over 3 years ago
docker pull ubidots/docker-ubifunction-python3action