diff --git a/.github/dependabot.yml b/.github/dependabot.yml index 422968a5fe..05c0a08eba 100644 --- a/.github/dependabot.yml +++ b/.github/dependabot.yml @@ -49,10 +49,6 @@ updates: directory: "s3-uploader/runtimes/dotnet7_aot_on_provided_al2/src" schedule: interval: "daily" - - package-ecosystem: "nuget" - directory: "s3-uploader/runtimes/dotnet8_aot_on_provided_al2/src" - schedule: - interval: "daily" - package-ecosystem: "nuget" directory: "s3-uploader/runtimes/dotnet8_aot_on_provided_al2023/src" schedule: diff --git a/manifest.json b/manifest.json index 84e40f2dcf..e3485eafb7 100644 --- a/manifest.json +++ b/manifest.json @@ -131,16 +131,6 @@ "baseImage": "public.ecr.aws/lambda/dotnet:8" } }, - { - "displayName": "dotnet8 aot (prov.al2)", - "runtime": "provided.al2", - "handler": "bootstrap", - "path": "dotnet8_aot_on_provided_al2", - "architectures": ["x86_64", "arm64"], - "image": { - "baseImage": "public.ecr.aws/lambda/provided:al2" - } - }, { "displayName": "dotnet8 aot (prov.al2023)", "runtime": "provided.al2023", diff --git a/s3-uploader/runtimes/dotnet8_aot_on_provided_al2/Dockerfile b/s3-uploader/runtimes/dotnet8_aot_on_provided_al2/Dockerfile deleted file mode 100644 index 24566e3dbd..0000000000 --- a/s3-uploader/runtimes/dotnet8_aot_on_provided_al2/Dockerfile +++ /dev/null @@ -1,14 +0,0 @@ -ARG IMAGE_TAG -FROM $IMAGE_TAG/amazonlinux:2 AS builder -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 -ENV DOTNET_SYSTEM_GLOBALIZATION_INVARIANT=1 -RUN /root/.dotnet/dotnet publish --configuration Release --arch $ARCH --output /tmp/publish -RUN zip -j /tmp/code.zip /tmp/publish/bootstrap - -FROM scratch -COPY --from=builder /tmp/code.zip / -ENTRYPOINT ["/code.zip"] diff --git a/s3-uploader/runtimes/dotnet8_aot_on_provided_al2/build.sh b/s3-uploader/runtimes/dotnet8_aot_on_provided_al2/build.sh deleted file mode 100755 index 2d02d40fef..0000000000 --- a/s3-uploader/runtimes/dotnet8_aot_on_provided_al2/build.sh +++ /dev/null @@ -1,20 +0,0 @@ -DIR_NAME="./runtimes/$1" - -if [ $2 = "x86_64" ]; then - ARCH="x64" - IMAGE_TAG="amd64" - PLATFORM="linux/amd64" -elif [ $2 = "arm64" ]; then - ARCH="arm64" - IMAGE_TAG="arm64v8" - PLATFORM="linux/arm64" -else - echo "The process architecture $2 is set incorrectly. The value can only be either x86_64 or arm64." - exit 1 -fi - -rm ${DIR_NAME}/code_${2}.zip 2> /dev/null - -docker build --platform ${PLATFORM} ${DIR_NAME} --build-arg ARCH=${ARCH} --build-arg IMAGE_TAG=${IMAGE_TAG} -t maxday/dotnet8_on_provided_al2_${2} -dockerId=$(docker create maxday/dotnet8_on_provided_al2_${2}) -docker cp $dockerId:/code.zip ${DIR_NAME}/code_${2}.zip diff --git a/s3-uploader/runtimes/dotnet8_aot_on_provided_al2/src/Function.cs b/s3-uploader/runtimes/dotnet8_aot_on_provided_al2/src/Function.cs deleted file mode 100644 index b2f36dd24d..0000000000 --- a/s3-uploader/runtimes/dotnet8_aot_on_provided_al2/src/Function.cs +++ /dev/null @@ -1,28 +0,0 @@ -using Amazon.Lambda.RuntimeSupport; -using Amazon.Lambda.Serialization.SystemTextJson; -using System.Text.Json.Serialization; - -namespace LambdaPerf; - -public class Function -{ - private static async Task Main() - { - await LambdaBootstrapBuilder.Create(FunctionHandler, new SourceGeneratorLambdaJsonSerializer()) - .Build() - .RunAsync(); - } - - public static StatusResponse FunctionHandler() - { - return new StatusResponse(StatusCode: 200); - } -} - -public record StatusResponse(int StatusCode); - -[JsonSerializable(typeof(StatusResponse))] -[JsonSourceGenerationOptions(PropertyNamingPolicy = JsonKnownNamingPolicy.CamelCase)] -public partial class LambdaFunctionJsonSerializerContext : JsonSerializerContext -{ -} diff --git a/s3-uploader/runtimes/dotnet8_aot_on_provided_al2/src/LambdaPerf.csproj b/s3-uploader/runtimes/dotnet8_aot_on_provided_al2/src/LambdaPerf.csproj deleted file mode 100644 index 37b7d04839..0000000000 --- a/s3-uploader/runtimes/dotnet8_aot_on_provided_al2/src/LambdaPerf.csproj +++ /dev/null @@ -1,25 +0,0 @@ - - - - Lambda - Exe - bootstrap - net8.0 - enable - enable - true - true - false - true - Speed - true - - - - - - - - - - diff --git a/s3-uploader/runtimes/dotnet8_aot_on_provided_al2/src/aws-lambda-tools-defaults.json b/s3-uploader/runtimes/dotnet8_aot_on_provided_al2/src/aws-lambda-tools-defaults.json deleted file mode 100644 index 471cd7a6d5..0000000000 --- a/s3-uploader/runtimes/dotnet8_aot_on_provided_al2/src/aws-lambda-tools-defaults.json +++ /dev/null @@ -1,8 +0,0 @@ -{ - "configuration": "Release", - "framework": "net8.0", - "function-runtime": "provided.al2", - "function-memory-size": 256, - "function-timeout": 30, - "function-handler": "bootstrap" -} diff --git a/s3-uploader/runtimes/dotnet9_aot_on_provided_al2023/src/LambdaPerf.csproj b/s3-uploader/runtimes/dotnet9_aot_on_provided_al2023/src/LambdaPerf.csproj index ae271224d1..df69af9bd2 100644 --- a/s3-uploader/runtimes/dotnet9_aot_on_provided_al2023/src/LambdaPerf.csproj +++ b/s3-uploader/runtimes/dotnet9_aot_on_provided_al2023/src/LambdaPerf.csproj @@ -19,7 +19,7 @@ - +