lambci / docker-lambda

Docker images and test runners that replicate the live AWS Lambda environment
MIT License
5.83k stars 431 forks source link

Need support for python3.9 #343

Open xncbf opened 3 years ago

xncbf commented 3 years ago

Ref https://aws.amazon.com/blogs/compute/python-3-9-runtime-now-available-in-aws-lambda/

mhihasan commented 3 years ago

How long it would take to support python 3.9? Currently I am using 3.9 lambda runtime. Is there any way to build myself?

mebibou commented 2 years ago

would be great to have lambci/lambda:build-python3.9 available

pdecat commented 2 years ago

You may want to switch to public.ecr.aws/sam/build-python3.9 images like the terraform-aws-lambda module did recently: https://github.com/terraform-aws-modules/terraform-aws-lambda/commit/ecb38076b0408982183ebb8070aff7c7e01c4b82#diff-b335630551682c19a781afebcf4d07bf978fb1f8ac04c6bf87428ed5106870f5R466

mebibou commented 2 years ago

public.ecr.aws/sam/build-3.9

Seems they dont have 3.9 either:

docker: Error response from daemon: repository public.ecr.aws/sam/build-3.9 not found: name unknown: The repository with name 'build-3.9' does not exist in the registry with id 'sam'.
mebibou commented 2 years ago

@pdecat I switched to one of the fork as suggested in a merge request: mlupin/docker-lambda:python3.9-build

pdecat commented 2 years ago

Sorry, meant public.ecr.aws/sam/build-python3.9.

This is an official AWS image: https://docs.aws.amazon.com/serverless-application-model/latest/developerguide/serverless-image-repositories.html

mebibou commented 2 years ago

@pdecat right sorry should have spotted the python missing as well, thansk!

sany2k8 commented 2 years ago

Any further updates about python v3.9?

johnwlockwood commented 2 years ago

I can confirm you can use the public.ecr.aws/sam/build-python3.9:latest image in the same way as you did lambci/lambda:build-python3.8

koorukuroo commented 1 year ago

I can confirm you can use the public.ecr.aws/sam/build-python3.9:latest image in the same way as you did lambci/lambda:build-python3.8

Just change public.ecr.aws/sam/build-python3.9:latest, it well works! :D

Ref : https://gallery.ecr.aws/sam/build-python3.9