mirror of
https://github.com/fnproject/fn.git
synced 2022-10-28 21:29:17 +03:00
More doc updates, explanation of serverless. (#228)
* More doc updates, explanation of serverless. * Moved howto directory to examples and some minor doc updates. * Added apps and routes docs. * Fixes for Carlos' comments. * Added bit about importing lambda functions.
This commit is contained in:
22
docs/lambda/create.md
Normal file
22
docs/lambda/create.md
Normal file
@@ -0,0 +1,22 @@
|
||||
# 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:
|
||||
```bash
|
||||
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:
|
||||
```bash
|
||||
fnctl lambda create-function irontest/node-exec:1 nodejs node_exec.handler node_exec.js
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user