Sign inSign up

flyandi/ci-build-image-aws-lambda-node

By flyandi

Updated over 9 years ago

Generic CI Build Image for Amazon Lambda (Node Environment)

Image
1

3.9K

flyandi/ci-build-image-aws-lambda-node repository overview

Build Status

Generic CI Build Image for Amazon Lambda (Node Environment)

Introduction

This docker image is intended to provide a lightweight but still feature-rich build image for Amazon Lambda Functions. The image includes several standard system packages, node and the Amazon Command Line Tool.

It's purpose is mainly directed towards continues integration build jobs.

Image contains:

  • Node Runtime 4.3.2 (Current Lambda Node Environment)
  • Latest AWSCLI Tool
  • System packages like wget, jq, zip, unzip, curl, ssh, git, etc.

The system also includes the docker runtime engine allowing to build docker images within the build environment.

Runtime vs Build

This image is not a runtime image but rather used during CI build processes.

A typical pipelines uses this image to prepare the NPM modules, zip into an archive and push it to the designated Lambda function.

Standalone Usage

docker pull flyandi/ci-build-image-aws-lambda-node

Examples

GitLab CI:

stages:
  -build

build:
  stage: build
  image: flyandi/ci-build-image-aws-lambda-node
  script:
    - mkdir -p ./build 
    - cd ./src && npm install --no-progress
    - zip -X -r ../build/release.zip *
    - aws lambda update-function-code --function-name LambdaFunctionName --zip-file fileb://./build/release.zip 
  cache:
    paths:
      - ./src/node_modules
  artifacts:
    paths:
      - ./build/release.zip
    expire_in: 1 day

Tag summary

Content type

Image

Digest

Size

239.5 MB

Last updated

over 9 years ago

docker pull flyandi/ci-build-image-aws-lambda-node