Files
fn-serverless/docs/lambda/create.md
James Jeffrey c7f3066c75 Update references remove refs to treeder oracle funcy (#376)
* Remove lots of refs to iron and funcy oracle etc..

* more ref replacements

* Replacing more refs. Treeder

* Use Fn not FN
2017-09-29 16:22:15 -07:00

28 lines
940 B
Markdown

# OUT OF DATE - NEEDS TO BE UPDATED
# 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
FN compatible Docker Image as follows:
```bash
fn 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:
```bash
fn lambda create-function test/node-exec:1 nodejs node_exec.handler node_exec.js
```