serverless-offline
serverless-offline copied to clipboard
Docker Node16 runtime
Feature Request
AWS recently announced it is dropping support for Node 12 runtime. Recommended action is to upgrade to Node 16. However https://github.com/lambci/docker-lambda seems stale and there is no Node 16 lambda image available and there is no activity in the repo. Do you have any plan on how to support Node 16 runtime?
More info from AWS https://docs.aws.amazon.com/lambda/latest/dg/lambda-runtimes.html#runtime-support-policy
thank you @alexanderwink for filing the issue. you are right, the entire nodejs docker functionality is becoming close to be unusable.
we could try the official amazon docker image: https://hub.docker.com/r/amazon/aws-lambda-nodejs
I mean security wise is scary that serverless-offline has been hardcoded to use that lambci repos their docker images haven't been updated in 2 years and their github is equally stale.
I definetly suggest switching the image to something more reputable / maintained.
@dnalborczyk if i wanted to contribute fixing this what are the requirements for the image to have / include? What tools on that image are used to see what code would have to change if any or what docker images are compatible?
I mean security wise is scary that serverless-offline has been hardcoded to use that lambci repos their docker images haven't been updated in 2 years and their github is equally stale.
you are right, those shouldn't be hard-coded ideally. since this plugin is for local development, security-wise it should be (more or less) "fine". that said, they are still outdated and unsupported runtimes.
I definetly suggest switching the image to something more reputable / maintained.
Agreed.
@dnalborczyk if i wanted to contribute fixing this what are the requirements for the image to have / include? What tools on that image are used to see what code would have to change if any or what docker images are compatible?
there shouldn't be any restrictions, although it might be best to get the official amazon images supported. if I remember correctly the very release of those made the lambci maintainer, unfortunately but also understandably, to give up.
the lambci images are pretty much more or less reverse engineered images of the prior unofficial amazon images. that's why I would imagine those would "just work".
same problem here, i'd like to use serverless offline with node 16 or even 14. @dnalborczyk
@AntonyOnScript serverless-offline supports node.js v14 and v16, just not running the lambda handler in a docker container with the lambda runtime.
The issue is if you have mixed tech like Go and NodeJS you need to run them all with useDocker, or is it possible to have some functions run in Docker and some locally?
The issue is if you have mixed tech like Go and NodeJS you need to run them all with useDocker, or is it possible to have some functions run in Docker and some locally?
it's not possible right now, but I agree, that's one of the pain points we should address eventually.
We are no longer using lambci docker images.