Files
fn-serverless/fnctl/docs/lambda/create.md
Seif Lotfy سيف لطفي a396a26410 Add lambda documentation (#215)
* Add import documentation

* minor fix

* Add lambda introductions in the docs

* Add lambda test-function docs

* Add getting-started

* Added lambda docs for create-function

* fixes suggested by @ccirello

* Add lamba environment documentation

* quick fixes

* use 3 ticks and language for docs

* use 3 ticks and language

* Add missing lambda README.md

* link to iron/node in the envirtonment.md

* fix getting-started.md

* notate bash commands

* minor cleanup

* minor cleanup

* minor cleanup

* minor cleanup

* minor cleanup

* fnctl/docs: fix formatting in create.md
2016-11-06 09:13:57 -08:00

921 B

Creating Docker images out of Lambda functions

Docker images created by running the create-function subcommand on a Lambda function are ready to execute.

You can convert any Lambda function of type nodejs 0.10, python 2.7 and Java 8 into an IronFunction compatible Docker Image as follows:

fnctl lambda create-function <name> <runtime> <handler> <files...>
  • name: the name of the created docker image which should have the format <username>/<image-name>
  • runtime: any of the following nodejs, python2.7 or java8
  • handler: a handler takes a different form per runtime
    • java8: <namespace>.<class>::<handler>
    • python2.7: <filename>.<handler>
    • nodejs: <filename>.<handler>
  • file: the files to be converted, however for java8 only one file of type jar is allowed.

e.g:

fnctl lambda create-function irontest/node-exec:1 nodejs node_exec.handler node_exec.js