From 6746bb898dec824e3f53b6ad2942d7191908d3be Mon Sep 17 00:00:00 2001 From: Maxime David Date: Mon, 5 May 2025 10:28:57 +0100 Subject: [PATCH 1/3] feat: add dotnet9 to manifest --- manifest.json | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/manifest.json b/manifest.json index 4247e77e32..d1299101bb 100644 --- a/manifest.json +++ b/manifest.json @@ -161,6 +161,16 @@ "baseImage": "public.ecr.aws/lambda/provided:al2023" } }, + { + "displayName": "dotnet9 aot (prov.al2023)", + "runtime": "provided.al2023", + "handler": "bootstrap", + "path": "dotnet9_aot_on_provided_al2023", + "architectures": ["x86_64", "arm64"], + "image": { + "baseImage": "public.ecr.aws/lambda/provided:al2023" + } + }, { "displayName": "java11", "runtime": "java11", From 8b244b98ec298330419efb0f7c6d7b90b859a378 Mon Sep 17 00:00:00 2001 From: Maxime David Date: Mon, 5 May 2025 10:45:19 +0100 Subject: [PATCH 2/3] fix: dotnet version --- s3-uploader/runtimes/dotnet8_aot_on_provided_al2023/Dockerfile | 2 +- s3-uploader/runtimes/dotnet9_aot_on_provided_al2023/Dockerfile | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/s3-uploader/runtimes/dotnet8_aot_on_provided_al2023/Dockerfile b/s3-uploader/runtimes/dotnet8_aot_on_provided_al2023/Dockerfile index 4fe80e0a53..5608adcaf4 100644 --- a/s3-uploader/runtimes/dotnet8_aot_on_provided_al2023/Dockerfile +++ b/s3-uploader/runtimes/dotnet8_aot_on_provided_al2023/Dockerfile @@ -4,7 +4,7 @@ ARG ARCH WORKDIR /tmp COPY src . RUN yum update -y && yum install -y clang zlib-devel krb5-devel openssl-devel zip gzip tar wget -RUN wget https://dot.net/v1/dotnet-install.sh -O dotnet-install.sh && chmod +x ./dotnet-install.sh && ./dotnet-install.sh --version latest +RUN wget https://dot.net/v1/dotnet-install.sh -O dotnet-install.sh && chmod +x ./dotnet-install.sh && ./dotnet-install.sh --channel 8.0 ENV DOTNET_SYSTEM_GLOBALIZATION_INVARIANT=1 ENV SSL_CERT_FILE=/tmp/noop RUN /root/.dotnet/dotnet publish --configuration Release --arch $ARCH --output /tmp/publish diff --git a/s3-uploader/runtimes/dotnet9_aot_on_provided_al2023/Dockerfile b/s3-uploader/runtimes/dotnet9_aot_on_provided_al2023/Dockerfile index 4fe80e0a53..e977291536 100644 --- a/s3-uploader/runtimes/dotnet9_aot_on_provided_al2023/Dockerfile +++ b/s3-uploader/runtimes/dotnet9_aot_on_provided_al2023/Dockerfile @@ -4,7 +4,7 @@ ARG ARCH WORKDIR /tmp COPY src . RUN yum update -y && yum install -y clang zlib-devel krb5-devel openssl-devel zip gzip tar wget -RUN wget https://dot.net/v1/dotnet-install.sh -O dotnet-install.sh && chmod +x ./dotnet-install.sh && ./dotnet-install.sh --version latest +RUN wget https://dot.net/v1/dotnet-install.sh -O dotnet-install.sh && chmod +x ./dotnet-install.sh && ./dotnet-install.sh --version 9.0.203 ENV DOTNET_SYSTEM_GLOBALIZATION_INVARIANT=1 ENV SSL_CERT_FILE=/tmp/noop RUN /root/.dotnet/dotnet publish --configuration Release --arch $ARCH --output /tmp/publish From 270a25c8de386629feaa63d81a7687a1edfa3c4f Mon Sep 17 00:00:00 2001 From: Maxime David Date: Mon, 5 May 2025 10:48:57 +0100 Subject: [PATCH 3/3] fix: set channel --- s3-uploader/runtimes/dotnet9_aot_on_provided_al2023/Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/s3-uploader/runtimes/dotnet9_aot_on_provided_al2023/Dockerfile b/s3-uploader/runtimes/dotnet9_aot_on_provided_al2023/Dockerfile index e977291536..f64f7fef7e 100644 --- a/s3-uploader/runtimes/dotnet9_aot_on_provided_al2023/Dockerfile +++ b/s3-uploader/runtimes/dotnet9_aot_on_provided_al2023/Dockerfile @@ -4,7 +4,7 @@ ARG ARCH WORKDIR /tmp COPY src . RUN yum update -y && yum install -y clang zlib-devel krb5-devel openssl-devel zip gzip tar wget -RUN wget https://dot.net/v1/dotnet-install.sh -O dotnet-install.sh && chmod +x ./dotnet-install.sh && ./dotnet-install.sh --version 9.0.203 +RUN wget https://dot.net/v1/dotnet-install.sh -O dotnet-install.sh && chmod +x ./dotnet-install.sh && ./dotnet-install.sh --channel 9.0 ENV DOTNET_SYSTEM_GLOBALIZATION_INVARIANT=1 ENV SSL_CERT_FILE=/tmp/noop RUN /root/.dotnet/dotnet publish --configuration Release --arch $ARCH --output /tmp/publish