Base Docker to execute UbiFunction python3.6 actions
100K+
Base Docker to execute UbiFunction python3.6 actions. Based on the original IBM Openwhisk action runner: https://github.com/ibm-functions/runtime-python.
The runtime is based on python3.6, older and newer 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.6
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-python3.6action
Content type
Image
Digest
sha256:0c46d0f38…
Size
787.5 MB
Last updated
over 3 years ago
docker pull ubidots/docker-ubifunction-python3.6action