Public Repository

Last pushed: 10 months 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:
https://github.com/jthomas/openwhisk_go_action

Docker Pull Command
Owner
jamesthomas

Comments (0)