Giter Club home page Giter Club logo

docker-serverless's Introduction

amaysim/serverless

npm deploy status image version docker pulls docker image size License

Serverless Application Framework AWS Lambda API Gateway

Docker image containing NodeJS, Serverless Framework and Yarn.

Usage

Docker run command

# running Serverless version 1.72.0
$ docker run --rm amaysim/serverless:1.72.0 serverless --help

Build image locally

If you want to build and use your own local image

# build image locally with latest Serverless version
$ make build

# build image locally with specific Serverless version
$ make build SERVERLESS_VERSION=1.72.0

# go inside the container
$ make shell

Docker image update automation

Periodically, once a week, a new amaysim/serverless Docker image containing the lastest version of Serverless is being built with GitHub Actions. This means that there is no need for someone to manually update and tag the image whenever there is a new Serverless version.

Contributing

The project follows the typical GitHub pull request model. Before starting any work, please either comment on an existing issue, or file a new one.

  1. Fork this repository
  2. Clone the forked repository
  3. Create a new branch with a meaningful name (optional)
  4. Make your changes
  5. Test locally
    1. $ make ciTest
  6. Commit and push your changes
  7. Create a pull request from a fork

Docker image

The Docker image has the following:

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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.