Skip to content

Commit

Permalink
Add terminal screenshot
Browse files Browse the repository at this point in the history
  • Loading branch information
mhart committed May 26, 2016
1 parent 3bc2ee3 commit 4d1ae04
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ environment almost identically – including installed software and libraries,
file structure and permissions, environment variables, context objects and
behaviors – even the user and running process are the same.

![Terminal Example](examples/terminal.png?raw=true "Example usage when index.js in current dir")

You can use it for testing your functions in the same strict Lambda environment,
knowing that they'll exhibit the same behavior when deployed live. You can
also use it to compile native dependencies knowing that you're linking to the
Expand Down Expand Up @@ -33,7 +35,7 @@ Example
You can perform actions with the current directory using the `-v` arg with
`docker run` – logging goes to stderr and the callback result goes to stdout:

```console
```sh
# Test an index.handler function from the current directory on Node.js v4.3
docker run -v "$PWD":/var/task lambci/lambda

Expand All @@ -43,6 +45,9 @@ docker run -v "$PWD":/var/task lambci/lambda index.myHandler '{"some": "event"}'
# Use the original Node.js v0.10 runtime
docker run -v "$PWD":/var/task lambci/lambda:nodejs

# Run custom commands on the default container
docker run --entrypoint node lambci/lambda -v

# To compile native deps in node_modules (runs `npm rebuild`)
docker run -v "$PWD":/var/task lambci/lambda:build

Expand Down
Binary file added examples/terminal.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 4d1ae04

Please sign in to comment.