Skip to content

my-ideas/docker-lambda-build

 
 

Repository files navigation

docker-lambda-build

Build you AWS Lambda cpode with dependencies valid at runtime using private npm repo!

Usage

Install node dependencies that will work in AWS Lambda:

docker run -it -v "$PWD":/var/task -e NPM_TOKEN=$(cat ~/.npmrc | awk -F= '{print $2}') myideas/lambda-build npm install
  • NPM_TOKEN is the token to access your private repo

Additional tools

These tools are included in this image to be used in the build environment, eg in Bitbucket Pipeline

  • turbodeploy to deploy to AWS
  • semver_update can be called before npm publish to automatically increment the fix number of the package semver version
  • checkstack: Create a ChangeSet for an AWS CloudFormation stack and return the number of differences (see in the repo my-ideas/turbideploy )
  • Terraform binary

Quick build reference

docker login
./build-container.sh

About

Docker container to build nodejs module for AWS Lambda

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Shell 63.6%
  • Dockerfile 36.4%