serverless-docker
Version:
This is a proof of concept to see if we can replicate Amazon API Gateway using docker images to run lambda
36 lines (27 loc) • 1.72 kB
Markdown
# Serverless docker plugin
[](http://www.serverless.com)
[](https://travis-ci.org/gertjvr/serverless-docker)
[](https://badge.fury.io/js/serverless-docker)
[](https://coveralls.io/github/gertjvr/serverless-docker?branch=master)
[](https://www.npmjs.com/package/serverless-docker)
[](https://www.npmjs.com/package/serverless-docker)
This is a proof of concept to see if we can replicate Amazon API Gateway using docker images to run lambda
###Features:
- λ runtimes **supported** _by docker-lambda._
- CORS
- Authorizer
- Custom Authorizer **supported**
- Coginito Authorizer **not implemented yet**
- Lambda Integration
- _Velocity templates support._ **supported**
- Lambda Proxy Integration. **supported**
## Prerequisite
- docker - https://docs.docker.com/engine/installation/
## Getting started
- `npm install` - Installs all dependencies
- `npm start` - Starts server listening at http://localhost:4000
- `npm test` - tests custom authorizer (Authorization:TOKEN 12345)
## Acknowledgements
This would not be possible without [lambci](http://lambci.org/)
- [docker-lambda](https://github.com/lambci/docker-lambda) - Docker images and test runners that replicate the live AWS Lambda environment
[@johncmckim](https://github.com/johncmckim) for suggesting the idea