From cb5a1087247fcfb3edb35ecf4c1e6ff35ce548db Mon Sep 17 00:00:00 2001 From: LuukvH Date: Sat, 27 Jul 2024 10:01:25 +0200 Subject: [PATCH] chore: Update to net8.0 Update the application to .net8. --- src/Services/CRM/Api/Api.csproj | 8 ++++---- src/Services/CRM/Api/Dockerfile | 4 ++-- src/Services/CRM/Application/Application.csproj | 2 +- src/Services/CRM/Domain/Domain.csproj | 2 +- src/Services/CRM/Infrastructure/Dockerfile | 6 +++--- src/Services/CRM/Infrastructure/Infrastructure.csproj | 6 +++--- src/Services/Scheduling/Api/Api.csproj | 8 ++++---- src/Services/Scheduling/Api/Dockerfile | 4 ++-- src/Services/Scheduling/Application/Application.csproj | 2 +- src/Services/Scheduling/Domain/Domain.csproj | 2 +- src/Services/Scheduling/Infrastructure/Dockerfile | 6 +++--- .../Scheduling/Infrastructure/Infrastructure.csproj | 6 +++--- 12 files changed, 28 insertions(+), 28 deletions(-) diff --git a/src/Services/CRM/Api/Api.csproj b/src/Services/CRM/Api/Api.csproj index 5a60217e..c5c4830c 100644 --- a/src/Services/CRM/Api/Api.csproj +++ b/src/Services/CRM/Api/Api.csproj @@ -1,7 +1,7 @@ - net7.0 + net8.0 enable enable ../../../docker-compose.dcproj @@ -21,11 +21,11 @@ - - + + runtime; build; native; contentfiles; analyzers; buildtransitive all - + diff --git a/src/Services/CRM/Api/Dockerfile b/src/Services/CRM/Api/Dockerfile index eed39506..000d0658 100644 --- a/src/Services/CRM/Api/Dockerfile +++ b/src/Services/CRM/Api/Dockerfile @@ -1,11 +1,11 @@ #See https://aka.ms/containerfastmode to understand how Visual Studio uses this Dockerfile to build your images for faster debugging. -FROM mcr.microsoft.com/dotnet/aspnet:7.0 AS base +FROM mcr.microsoft.com/dotnet/aspnet:8.0 AS base WORKDIR /app EXPOSE 80 EXPOSE 443 -FROM mcr.microsoft.com/dotnet/sdk:7.0 AS build +FROM mcr.microsoft.com/dotnet/sdk:8.0 AS build WORKDIR /src COPY ["Services/CRM/Api/Api.csproj", "Services/CRM/Api/"] COPY ["Services/CRM/Application/Application.csproj", "Services/CRM/Application/"] diff --git a/src/Services/CRM/Application/Application.csproj b/src/Services/CRM/Application/Application.csproj index 808047ae..7889a326 100644 --- a/src/Services/CRM/Application/Application.csproj +++ b/src/Services/CRM/Application/Application.csproj @@ -1,6 +1,6 @@ - net7.0 + net8.0 diff --git a/src/Services/CRM/Domain/Domain.csproj b/src/Services/CRM/Domain/Domain.csproj index 8cc99390..8dcf2d7d 100644 --- a/src/Services/CRM/Domain/Domain.csproj +++ b/src/Services/CRM/Domain/Domain.csproj @@ -1,7 +1,7 @@ - net7.0 + net8.0 diff --git a/src/Services/CRM/Infrastructure/Dockerfile b/src/Services/CRM/Infrastructure/Dockerfile index a1ad5d15..4ba2a5ae 100644 --- a/src/Services/CRM/Infrastructure/Dockerfile +++ b/src/Services/CRM/Infrastructure/Dockerfile @@ -1,5 +1,5 @@ #See https://aka.ms/containerfastmode to understand how Visual Studio uses this Dockerfile to build your images for faster debugging. -FROM mcr.microsoft.com/dotnet/sdk:7.0 AS build +FROM mcr.microsoft.com/dotnet/sdk:8.0 AS build WORKDIR /src COPY ["Services/CRM/Api/Api.csproj", "Services/CRM/Api/"] COPY ["Services/CRM/Application/Application.csproj", "Services/CRM/Application/"] @@ -9,11 +9,11 @@ RUN dotnet restore "Services/CRM/Api/Api.csproj" COPY . . WORKDIR "/src/Services/CRM/Infrastructure" -RUN dotnet tool install -g dotnet-ef --version 7.0.0 +RUN dotnet tool install -g dotnet-ef --version 8.0.0 ENV PATH $PATH:/root/.dotnet/tools RUN dotnet ef migrations bundle --self-contained -r linux-x64 --startup-project "../Api" --context MigrationDbContext -FROM ubuntu:22.10 AS migrator +FROM ubuntu:24.04 AS migrator RUN apt-get update && apt-get install -qqq libicu-dev libssl-dev diff --git a/src/Services/CRM/Infrastructure/Infrastructure.csproj b/src/Services/CRM/Infrastructure/Infrastructure.csproj index d049d41b..589fa053 100644 --- a/src/Services/CRM/Infrastructure/Infrastructure.csproj +++ b/src/Services/CRM/Infrastructure/Infrastructure.csproj @@ -1,12 +1,12 @@ - net7.0 + net8.0 - - + + diff --git a/src/Services/Scheduling/Api/Api.csproj b/src/Services/Scheduling/Api/Api.csproj index 5a60217e..c5c4830c 100644 --- a/src/Services/Scheduling/Api/Api.csproj +++ b/src/Services/Scheduling/Api/Api.csproj @@ -1,7 +1,7 @@ - net7.0 + net8.0 enable enable ../../../docker-compose.dcproj @@ -21,11 +21,11 @@ - - + + runtime; build; native; contentfiles; analyzers; buildtransitive all - + diff --git a/src/Services/Scheduling/Api/Dockerfile b/src/Services/Scheduling/Api/Dockerfile index eb6a2a19..56bcb0af 100644 --- a/src/Services/Scheduling/Api/Dockerfile +++ b/src/Services/Scheduling/Api/Dockerfile @@ -1,11 +1,11 @@ #See https://aka.ms/containerfastmode to understand how Visual Studio uses this Dockerfile to build your images for faster debugging. -FROM mcr.microsoft.com/dotnet/aspnet:7.0 AS base +FROM mcr.microsoft.com/dotnet/aspnet:8.0 AS base WORKDIR /app EXPOSE 80 EXPOSE 443 -FROM mcr.microsoft.com/dotnet/sdk:7.0 AS build +FROM mcr.microsoft.com/dotnet/sdk:8.0 AS build WORKDIR /src COPY ["Services/Scheduling/Api/Api.csproj", "Services/Scheduling/Api/"] COPY ["Services/Scheduling/Application/Application.csproj", "Services/Scheduling/Application/"] diff --git a/src/Services/Scheduling/Application/Application.csproj b/src/Services/Scheduling/Application/Application.csproj index 1bdf7235..98f54a7f 100644 --- a/src/Services/Scheduling/Application/Application.csproj +++ b/src/Services/Scheduling/Application/Application.csproj @@ -1,7 +1,7 @@ - net7.0 + net8.0 diff --git a/src/Services/Scheduling/Domain/Domain.csproj b/src/Services/Scheduling/Domain/Domain.csproj index 8cc99390..8dcf2d7d 100644 --- a/src/Services/Scheduling/Domain/Domain.csproj +++ b/src/Services/Scheduling/Domain/Domain.csproj @@ -1,7 +1,7 @@ - net7.0 + net8.0 diff --git a/src/Services/Scheduling/Infrastructure/Dockerfile b/src/Services/Scheduling/Infrastructure/Dockerfile index a2ece11b..584ed7fd 100644 --- a/src/Services/Scheduling/Infrastructure/Dockerfile +++ b/src/Services/Scheduling/Infrastructure/Dockerfile @@ -1,5 +1,5 @@ #See https://aka.ms/containerfastmode to understand how Visual Studio uses this Dockerfile to build your images for faster debugging. -FROM mcr.microsoft.com/dotnet/sdk:7.0 AS build +FROM mcr.microsoft.com/dotnet/sdk:8.0 AS build WORKDIR /src COPY ["Services/Scheduling/Api/Api.csproj", "Services/Scheduling/Api/"] COPY ["Services/Scheduling/Application/Application.csproj", "Services/Scheduling/Application/"] @@ -9,11 +9,11 @@ RUN dotnet restore "Services/Scheduling/Api/Api.csproj" COPY . . WORKDIR "/src/Services/Scheduling/Infrastructure" -RUN dotnet tool install -g dotnet-ef --version 7.0.0 +RUN dotnet tool install -g dotnet-ef --version 8.0.0 ENV PATH $PATH:/root/.dotnet/tools RUN dotnet ef migrations bundle --self-contained -r linux-x64 --startup-project "../Api" --context MigrationDbContext -FROM ubuntu:22.10 AS migrator +FROM ubuntu:24.04 AS migrator RUN apt-get update && apt-get install -qqq libicu-dev libssl-dev diff --git a/src/Services/Scheduling/Infrastructure/Infrastructure.csproj b/src/Services/Scheduling/Infrastructure/Infrastructure.csproj index d049d41b..589fa053 100644 --- a/src/Services/Scheduling/Infrastructure/Infrastructure.csproj +++ b/src/Services/Scheduling/Infrastructure/Infrastructure.csproj @@ -1,12 +1,12 @@ - net7.0 + net8.0 - - + +