Lambda is a framework for building Serverless functions with Docker which has first-class support for metrics. Any process can be packaged as a function enabling you to consume a range of web events without repetitive boiler-plate coding.
- Install Docker with Docker Compose
- Create external docker network
docker network create proxy - Build and deploy project
cd ./deployments && docker-compose up --build
Your function available on custom port. For example 8080 is function port.
Allow all http methods
curl -X GET \ http://localhost:3000/v1/function/{uuid}curl -X POST \ http://localhost:3000/v1/create \ -H 'Content-Type: application/json' \ -d '{ "name": "example", "runtime": { "executor": "/bin/cat", "cmd": "" }, "repository": { "image": "deissh/lambda-runner:latest" }, "service": { "port": "8080" } }'Result
{ "uuid": "c80d737d0040dff9c9b0341908273dfd71f66f4e5eb8302a0b9d8b26e9b87089" }/v1/inspect/:uuid
curl -X GET \ http://localhost:3000/v1/inspect/{uuid}/v1/delete/:uuid
You need change uuid befour use.
curl -X GET \ http://localhost:3000/v1/delete/{uuid}