DEEPaaS API as an OpenWhisk actionΒΆ

DEEPaaS API can be executed inside a Docker container as an OpenWhisk Docker action. In your Dockerfile, you have to ensure that you execute deepaas-run with the --openwhisk-detect switch, as follows:

CMD ["sh", "-c", "deepaas-run --openwhisk --listen-ip"]

For a complete example, check the DEEP OC Generic Container <> or the Dockerfile that is included within the DEEPaaS API repository.

With that Dockerfile you can build your docker container and create the corresponding OpenWhisk action:

docker build -t foobar/container .
wsk action create action-name --docker foobar/container --web true