GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - dkzkb/amazonlinux-lambda-python: Environment for creating a Lambda function deployment package ( Python )

BranchesTags
Open more actions menu

Latest commit

 

History

3 Commits
3 Commits

Folders and files

NameName
Last commit message
Last commit date
share
share
 
 
Dockerfile
Dockerfile
 
 
README.md
README.md
 
 
docker-compose.yaml
docker-compose.yaml
 
 

Repository files navigation

amazonlinux-lambda-python

Environment for creating a Lambda function deployment package ( Python )

Requirement

  • Docker
  • Docker Compose

Usage

  1. Get Docker files.
$ git clone [email protected]:dkzkb/amazonlinux-lambda-python.git  
$ cd amazonlinux-lambda-python 
  1. If necessary, edit the python version in Dockerfile.
    (default is v3.6.5)
# Dockerfile  

ARG python_majar_version='3'
ARG python_minor_version='6'
ARG python_batch_version='5'
  1. Build and up docker.
$ docker-compose build  
$ docker-compose up -d  
  1. Get into docker.
$ docker-compose exec app /bin/bash  
  1. Add a lambda function file.
$ pwd  
/share  
$ touch lambda_function.py  
  1. Install required packages.
$ pip install some-package-name -t .  
  1. Archive files.
$ zip -r upload.zip *  
  1. Upload a zip file to lambda.

Author

@dkzkb

License

MIT

About

Environment for creating a Lambda function deployment package ( Python )

Topics

amazonlinuxdockerdocker-composelambdapython

Resources

Readme
Activity

Stars

0 stars

Watchers

1 watching

Forks

0 forks
Report repository

Releases

Packages

Contributors

You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.