docker-lambda icon indicating copy to clipboard operation
docker-lambda copied to clipboard

Need support for python3.9

Open xncbf opened this issue 4 years ago • 10 comments

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

xncbf avatar Aug 20 '21 06:08 xncbf

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?

mhihasan avatar Sep 15 '21 11:09 mhihasan

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

mebibou avatar May 19 '22 10:05 mebibou

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

pdecat avatar May 19 '22 11:05 pdecat

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 avatar May 19 '22 12:05 mebibou

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

mebibou avatar May 19 '22 12:05 mebibou

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

pdecat avatar May 19 '22 12:05 pdecat

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

mebibou avatar May 19 '22 12:05 mebibou

Any further updates about python v3.9?

sany2k8 avatar Sep 26 '22 13:09 sany2k8

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

johnwlockwood avatar Sep 27 '22 23:09 johnwlockwood

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

koorukuroo avatar Dec 13 '22 08:12 koorukuroo