github.com/iron-io/functions@v0.0.0-20180820112432-d59d7d1c40b2/docs/lambda/create.md (about) 1 # Creating Docker images out of Lambda functions 2 Docker images created by running the `create-function` subcommand on a Lambda function are ready to execute. 3 4 You can convert any Lambda function of type nodejs 0.10, python 2.7 and Java 8 into an 5 IronFunction compatible Docker Image as follows: 6 ```bash 7 fn lambda create-function <name> <runtime> <handler> <files...> 8 ``` 9 10 * name: the name of the created docker image which should have the format `<username>/<image-name>` 11 * runtime: any of the following `nodejs`, `python2.7` or `java8` 12 * handler: a handler takes a different form per runtime 13 * java8: `<namespace>.<class>::<handler>` 14 * python2.7: `<filename>.<handler>` 15 * nodejs: `<filename>.<handler>` 16 * file: the files to be converted, however for java8 only one file of type `jar` is allowed. 17 18 e.g: 19 ```bash 20 fn lambda create-function irontest/node-exec:1 nodejs node_exec.handler node_exec.js 21 ``` 22