Skip to content

junheon/docker-serverless

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

72 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

amaysim/serverless

Serverless Application Framework AWS Lambda API Gateway

serverless

Docker image containing NodeJS, Serverless Framework and Yarn.

Usage

Build Locally

If you want to build and use your own local image

# build image locally
$ make build
# go inside the container
$ make shell

Example

example/apigw is an example on how to use amaysim/serverless.

Update Docker image

New version of Serverless Framework

  1. Change SERVERLESS of Dockerfile
  2. Change SERVERLESS_VERSION of Makefile
  3. Change version of docker-serverless in example/apigw/docker-compose
  4. Build and test locally (test also the apigw example)
  5. Commit and push the changes
  6. Tag the commit with the command $ make tag
  7. Go to hub.docker.com
  8. In Build Details tab, you should now see the new tag kicking off

Fix for the current version

  1. Do the fixes you want to do
  2. Build and test locally (test also the apigw example)
  3. Commit and push the changes
  4. Run $ make tag
  5. Go to hub.docker.com
  6. In Build Details tab, you should now see build the tag kicking off

Docker image

The Docker image has the following:

  • Node 8.4 (Alpine): we leverage Babel to be compatible with AWS Lambda runtime
  • Serverless Framework v1.27.1
  • yarn
  • zip: handy to zip your own serverless artefact
  • AWS CLI: required by some Serverless plug-ins to work

About

Docker image containing NodeJS, Serverless Framework and Yarn.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Makefile 54.1%
  • JavaScript 24.7%
  • Dockerfile 21.2%