Public Repository

Last pushed: 2 years ago
Short Description
Running binaries as serverless functions using OpenWhisk.
Full Description

Provides a way to execute binaries as serverless functions using OpenWhisk.

FROM jamesthomas/openwhisk_docker_action
COPY action /blackbox/action

This base image uses the Node.js server from the OpenWhisk Docker SDK to handle the execution requests from the OpenWhisk platform. When an Action is invoked, the binary file is executed.

The path for the binary defaults to /blackbox/action. COPY your custom binary file to this location.

This path can be overridden using a custom ENV command for the ACTION environment variable.

The JSON string for the invocation parameters is passed as the single command-line argument to the binary. Any data written to stdout will be interpreted as JSON and passed as the response value.

See a sample project using this image here:

Docker Pull Command