-
-
Notifications
You must be signed in to change notification settings - Fork 3.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add dotnet 6 runtime #5815
Add dotnet 6 runtime #5815
Conversation
.circleci/config.yml
Outdated
@@ -85,6 +85,7 @@ jobs: | |||
docker pull -q lambci/lambda:20191117-python3.6 | |||
docker pull -q lambci/lambda:20191117-dotnetcore2.0 | |||
docker pull -q lambci/lambda:dotnetcore3.1 | |||
docker pull -q lambci/lambda:dotnet6.0 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
waiting lambci/docker-lambda#359 to get merged
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi there! Lambci is pretty dead right now. Until we have the lambda rework in place, it might be a good solution to use the repository of mlupine: https://hub.docker.com/layers/docker-lambda/mlupin/docker-lambda/dotnet6/images/sha256-fc3edf2e50307a5c81e4da7690f6cb6427819279081e1d9b16e52a294bf21738?context=explore , as we do already with python3.9.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We would need to adjust the image though, in lambda_executor.py:1596.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
awesome. Thanks for the feedback. @dfangl
I will look into this today.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Finally got this working.
@dfangl can you take a final review?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please add the docker pull -q ... part back in for the mlupin image!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍🏻 added back
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
All in all, thanks for taking this into your hands and creating this PR. Please just change the Readme accordingly, and add the docker pull
command to the circleci stage again, for the mlupin image.
FYI: If it is alright with you, I would like to rebuild the zip deployment package myself, and commit it to your branch with a signed commit before merge. I want to stress this is nothing against you personally, just for new contributors, I do not like to allow (potentially harmful) binary blobs to commit.
@@ -0,0 +1,49 @@ | |||
# AWS Lambda Empty Function Project |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It would be nice to rework this readme (remove all the autogenerated stuff), with just a short notice on how to build the commited zip archive (should be something like dotnet lambda package
, right?)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yup, I updated the readme.
@@ -1593,7 +1593,9 @@ def docker_image_for_lambda(cls, lambda_function: LambdaFunction): | |||
if runtime == "nodejs14.x" and docker_image == DEFAULT_LAMBDA_CONTAINER_REGISTRY: | |||
# TODO temporary fix until lambci image for nodejs14.x becomes available | |||
docker_image = "localstack/lambda-js" | |||
if runtime == "python3.9" and docker_image == DEFAULT_LAMBDA_CONTAINER_REGISTRY: | |||
elif ( | |||
runtime == "python3.9" or runtime == "dotnet6" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
runtime == "python3.9" or runtime == "dotnet6" | |
runtime in ["python3.9", "dotnet6"] |
could possibly also work. No real official style guidelines for this though, you might as well leave it.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this actually reads better. I updated it
@dfangl thanks again for the quick feedbacks. I've addressed your comments. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM now. Ready to merge once the build passes.
Thanks for the PR, its merged 🎉 |
Its closed-source, but it includes building the |
Aws Lambda supports dotnet 6 runtime.
Adding same support for localstack