HUB
Sign inSign up
lambda logo

quiltdata/lambda

By quiltdata

•Updated about 2 years ago

Build AWS Lambda deployment packages with Docker

Image
4

10K+

quiltdata/lambda repository overview

⁠Build AWS Lambda deployment packages with Docker

⁠Why?

⁠Example: Python 3.6 deployment package

docker pull quiltdata/lambda

docker run --rm -v $(pwd)/create_table:/io -t \
	-e SETUP_DIR -e GIT_REPO quiltdata/lambda \
	bash /io/package.sh
  • Mount /io as a docker volume
    • /io should contain package.sh and your lambda code \
    • /io is where the deployment package, lambda.zip, is written \
  • Pass environment variables with -e
  • --rm so that, for example, secure envs aren't written to disk

⁠Customize

Modify package.sh to suit your own purposes.

⁠Build container

docker build -t quiltdata/lambda .

⁠Clone private GitHub repo in container

Use a personal access token⁠:

git clone https://${TOKEN}@github.com/USER/REPO

⁠Optimizations to reduce .zip size

Possible but not tried in this repo:

Tag summary
Recent tags
Content type
Image
Digest
Size
300.8 MB
Last updated
about 5 years ago
docker pull quiltdata/lambda:latest