Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Latest commit

 

History

History
History
14 lines (10 loc) · 481 Bytes

File metadata and controls

14 lines (10 loc) · 481 Bytes
Copy raw file
Download raw file
Edit and raw actions

Java 8 docker-lambda example

Run with:

# Will place the compiled code in `./build/docker`
docker run --rm -v "$PWD":/app -w /app gradle:6.0 gradle build

# Then you can run using that directory as the task directory
docker run --rm -v "$PWD/build/docker":/var/task lambci/lambda:java8 org.lambci.lambda.ExampleHandler '{"some": "event"}'

# OR
docker run --rm -v "$PWD/build/docker":/var/task lambci/lambda:java11 org.lambci.lambda.ExampleHandler '{"some": "event"}'
Morty Proxy This is a proxified and sanitized view of the page, visit original site.