Skip to content

Latest commit

 

History

History
22 lines (13 loc) · 486 Bytes

File metadata and controls

22 lines (13 loc) · 486 Bytes

serverless-docker-invoke

Like serverless invoke, but with docker-lambda

Pretty much just a thin wrapper for passing a json file for a custom event to docker-lambda.

cli

Install
npm i -g gritcode/serverless-docker-invoke

Run
docker-invoke -f <function> -p <event.json>

node.js

const dockerInvoke = require('serverless-docker-invoke');
const output = dockerInvoke(functionName, eventFile);