-
Notifications
You must be signed in to change notification settings - Fork 979
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 support for Node 18 #580
Comments
As described in #490 the following workaround also applies for nodejs 18: phases:
install:
runtime-versions:
nodejs: 16
commands:
- n 18 |
I don't think this works with |
+1 for this. Also as a point going forward, could AWS try and coordinate CodeBuild support for Node versions with Lambda support? Generally we're only happy to upgrade once we can get CI build environments to match the lambda runtime. |
+1 for this. |
+1 |
1 similar comment
+1 |
+2 :) |
September 11th, 2023 is the EOL for Node JS 16. https://nodejs.org/ar/blog/announcements/nodejs16-eol/ A Node JS 18 compatible aws codebuild image needs to be available prior to this EOL. Whether that is updating existing images, or releasing new images. As mentioned above, the issue we encounter is |
@dc0g wrote:
I believe the following runtimes can install (and use) node18 using the
Which runtimes cannot install (and use) node18?
|
Any image can install Node 18, but aws/codebuild/amazonlinux2-aarch64-standard:2.0 can't run it because its libc is too old (being from RHEL7). Node 18 introduced a requirement on a higher libc version than is available in RHEL7-based distros. You get an error like this when running node 18:
But yes, switching to the ubuntu-based images works just fine. |
We run into the same libc issue with the aws/codebuild/amazonlinux2-x86_64-standard:4.0 image. |
According to @HaaLeo's comments, I test on Linux
its works but i also do hope support nodejs 18 without workaround soon. Thanks for tip guys. these comments are saved a lots of time! |
Using
|
I am also facing the same issue |
https://aws.amazon.com/about-aws/whats-new/2023/03/amazon-linux-2023/ With the new amazon linux version, GLIBC is also getting updated. Hopefully it works soonish. |
Bumping this again given the impending EOL for Node 16. We've recently moved all of our Lambda services to Node 18, and moved our Codebuild jobs to Node 18 using the workaround described further up the thread here. This works fine most of the time but occasionally builds fail to download the Node 18 runtime which lead to failures along the lines of |
+1 ing this |
Cross-posting from #607: Node 18 should be supported on Ubuntu based image in a couple of weeks from now. Amazon Linux image will be updated to AL2023 base and support Node 18 by mid-May. |
Added node 18 support to ubuntu 7.0 #621 |
Added node 18 support for ARM #627 |
Just tested aws/codebuild/amazonlinux2-aarch64-standard:3.0, looks like it works!
Thank you! |
Using aws/codebuild/amazonlinux2-x86_64-standard:3.0 (Fargate-based ECS by AWS Copilot) is still a problem about GLIBC. Thanks! |
Node 18 is now supported in amazonlinux2-x86_64-standard:5.0 https://github.com/aws/aws-codebuild-docker-images/blob/master/al2/x86_64/standard/5.0/runtimes.yml#L51 |
@subinataws shouldn't that be reflected also in available runtimes docs table ? |
as described here aws/aws-codebuild-docker-images#580
So now we start all over again for Node 20? |
https://aws.amazon.com/blogs/compute/node-js-20-x-runtime-now-available-in-aws-lambda/ |
Is it impossible to let it gracefully upgrade without having this problem every time there's a new node version? Can you explain the main reason(s) for this design choice? |
Hello there 👋 ,
Now that Node 18 is LTS (https://nodejs.org/en/), can we add support for Node 18 as a supported runtime on CodeBuild?
Thanks heaps.
The text was updated successfully, but these errors were encountered: