From b00bbf33f989b79f4806020af208e97cf746a1eb Mon Sep 17 00:00:00 2001 From: Maxime Ozenne Date: Tue, 18 Jul 2023 15:17:29 +0200 Subject: [PATCH] Remove Docker --- Pixel.Identity.sln | 27 ------------ src/Pixel.Identity.Provider/Dockerfile | 41 ------------------- .../Pixel.Identity.Provider.csproj | 5 +-- 3 files changed, 1 insertion(+), 72 deletions(-) delete mode 100644 src/Pixel.Identity.Provider/Dockerfile diff --git a/Pixel.Identity.sln b/Pixel.Identity.sln index 8d29090..65ba6de 100644 --- a/Pixel.Identity.sln +++ b/Pixel.Identity.sln @@ -9,8 +9,6 @@ Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Pixel.Identity.UI.Client", EndProject Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Pixel.Identity.Shared", "src\Pixel.Identity.Shared\Pixel.Identity.Shared.csproj", "{A549C971-2306-45A0-BDCD-D210523FFBB3}" EndProject -Project("{E53339B2-1760-4266-BCC7-CA923CBCF16C}") = "docker-compose", "docker-compose.dcproj", "{8F59DA83-60F4-485A-B8C7-B17936EC00A2}" -EndProject Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Pixel.Identity.Store.Mongo", "src\Pixel.Identity.Store.Mongo\Pixel.Identity.Store.Mongo.csproj", "{4CBB3557-11B0-49D1-851C-1AB9884E8C5D}" EndProject Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Pixel.Identity.Core", "src\Pixel.Identity.Core\Pixel.Identity.Core.csproj", "{E1581674-E28D-429B-B607-22EC81E44E89}" @@ -37,18 +35,6 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Tests", "Tests", "{90291008 EndProject Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Pixel.Identity.UI.Tests", "src\Pixel.Identity.UI.Tests\Pixel.Identity.UI.Tests.csproj", "{440B2ECE-5DCF-481D-9C18-0EC8F4F18E98}" EndProject -Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = ".github", ".github", "{2454553A-208B-4D0F-A877-66F67C550DB4}" -EndProject -Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "workflows", "workflows", "{1872169C-F107-43FD-AE02-6DDF88241644}" - ProjectSection(SolutionItems) = preProject - .github\workflows\identity-build-and-test-docker.yaml = .github\workflows\identity-build-and-test-docker.yaml - .github\workflows\identity-build-only.yaml = .github\workflows\identity-build-only.yaml - .github\workflows\identity-build-docker-image.yaml = .github\workflows\identity-build-docker-image.yaml - .github\workflows\identity-publish-to-docker-hub.yaml = .github\workflows\identity-publish-to-docker-hub.yaml - .github\workflows\identity-test-docker-image-with-mongo.yaml = .github\workflows\identity-test-docker-image-with-mongo.yaml - .github\workflows\identity-test-docker-image-with-postgres.yaml = .github\workflows\identity-test-docker-image-with-postgres.yaml - EndProjectSection -EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution Debug|Any CPU = Debug|Any CPU @@ -95,18 +81,6 @@ Global {A549C971-2306-45A0-BDCD-D210523FFBB3}.Release|x64.Build.0 = Release|Any CPU {A549C971-2306-45A0-BDCD-D210523FFBB3}.Release|x86.ActiveCfg = Release|Any CPU {A549C971-2306-45A0-BDCD-D210523FFBB3}.Release|x86.Build.0 = Release|Any CPU - {8F59DA83-60F4-485A-B8C7-B17936EC00A2}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {8F59DA83-60F4-485A-B8C7-B17936EC00A2}.Debug|Any CPU.Build.0 = Debug|Any CPU - {8F59DA83-60F4-485A-B8C7-B17936EC00A2}.Debug|x64.ActiveCfg = Debug|Any CPU - {8F59DA83-60F4-485A-B8C7-B17936EC00A2}.Debug|x64.Build.0 = Debug|Any CPU - {8F59DA83-60F4-485A-B8C7-B17936EC00A2}.Debug|x86.ActiveCfg = Debug|Any CPU - {8F59DA83-60F4-485A-B8C7-B17936EC00A2}.Debug|x86.Build.0 = Debug|Any CPU - {8F59DA83-60F4-485A-B8C7-B17936EC00A2}.Release|Any CPU.ActiveCfg = Release|Any CPU - {8F59DA83-60F4-485A-B8C7-B17936EC00A2}.Release|Any CPU.Build.0 = Release|Any CPU - {8F59DA83-60F4-485A-B8C7-B17936EC00A2}.Release|x64.ActiveCfg = Release|Any CPU - {8F59DA83-60F4-485A-B8C7-B17936EC00A2}.Release|x64.Build.0 = Release|Any CPU - {8F59DA83-60F4-485A-B8C7-B17936EC00A2}.Release|x86.ActiveCfg = Release|Any CPU - {8F59DA83-60F4-485A-B8C7-B17936EC00A2}.Release|x86.Build.0 = Release|Any CPU {4CBB3557-11B0-49D1-851C-1AB9884E8C5D}.Debug|Any CPU.ActiveCfg = Debug|Any CPU {4CBB3557-11B0-49D1-851C-1AB9884E8C5D}.Debug|Any CPU.Build.0 = Debug|Any CPU {4CBB3557-11B0-49D1-851C-1AB9884E8C5D}.Debug|x64.ActiveCfg = Debug|Any CPU @@ -248,7 +222,6 @@ Global {7D75919B-B900-4370-A9AB-913104AEA2F0} = {D1F9C105-5E1A-42B0-A47F-3DD3B223AD8C} {535B958A-7CEF-43EC-9545-3CE999D74889} = {D1F9C105-5E1A-42B0-A47F-3DD3B223AD8C} {440B2ECE-5DCF-481D-9C18-0EC8F4F18E98} = {90291008-5EF2-4A1F-9B89-19216A3B017F} - {1872169C-F107-43FD-AE02-6DDF88241644} = {2454553A-208B-4D0F-A877-66F67C550DB4} EndGlobalSection GlobalSection(ExtensibilityGlobals) = postSolution SolutionGuid = {D2D4C886-7F44-4E77-9010-D9AB3C1B559C} diff --git a/src/Pixel.Identity.Provider/Dockerfile b/src/Pixel.Identity.Provider/Dockerfile deleted file mode 100644 index d585ed9..0000000 --- a/src/Pixel.Identity.Provider/Dockerfile +++ /dev/null @@ -1,41 +0,0 @@ -#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:6.0-alpine AS base -WORKDIR /app -EXPOSE 80 -EXPOSE 443 - -FROM mcr.microsoft.com/dotnet/sdk:6.0-alpine AS build -WORKDIR /src - -#identity projects -COPY ["src/Pixel.Identity.Core/Pixel.Identity.Core.csproj", "src/Pixel.Identity.Core/"] -COPY ["src/Pixel.Identity.Provider/Pixel.Identity.Provider.csproj", "src/Pixel.Identity.Provider/"] -COPY ["src/Pixel.Identity.Shared/Pixel.Identity.Shared.csproj", "src/Pixel.Identity.Shared/"] -COPY ["src/Pixel.Identity.UI.Client/Pixel.Identity.UI.Client.csproj", "src/Pixel.Identity.UI.Client/"] - -#plugin projects -COPY ["src/Pixel.Identity.Messenger.Email/Pixel.Identity.Messenger.Email.csproj", "src/Pixel.Identity.Messenger.Email/"] -COPY ["src/Pixel.Identity.Messenger.Console/Pixel.Identity.Messenger.Console.csproj", "src/Pixel.Identity.Messenger.Console/"] -COPY ["src/Pixel.Identity.Store.Sql.Shared/Pixel.Identity.Store.Sql.Shared.csproj", "src/Pixel.Identity.Store.Sql.Shared/"] -COPY ["src/Pixel.Identity.Store.SqlServer/Pixel.Identity.Store.SqlServer.csproj", "src/Pixel.Identity.Store.SqlServer/"] -COPY ["src/Pixel.Identity.Store.PostgreSQL/Pixel.Identity.Store.PostgreSQL.csproj", "src/Pixel.Identity.Store.PostgreSQL/"] -COPY ["src/Pixel.Identity.Store.Mongo/Pixel.Identity.Store.Mongo.csproj", "src/Pixel.Identity.Store.Mongo/"] - -RUN dotnet restore "src/Pixel.Identity.Messenger.Email/Pixel.Identity.Messenger.Email.csproj" -RUN dotnet restore "src/Pixel.Identity.Messenger.Console/Pixel.Identity.Messenger.Console.csproj" -RUN dotnet restore "src/Pixel.Identity.Provider/Pixel.Identity.Provider.csproj" -RUN dotnet restore "src/Pixel.Identity.Store.Mongo/Pixel.Identity.Store.Mongo.csproj" -RUN dotnet restore "src/Pixel.Identity.Store.SqlServer/Pixel.Identity.Store.SqlServer.csproj" -RUN dotnet restore "src/Pixel.Identity.Store.PostgreSQL/Pixel.Identity.Store.PostgreSQL.csproj" - -COPY . . -WORKDIR "/src/src/Pixel.Identity.Provider" - -FROM build AS publish -RUN dotnet publish "Pixel.Identity.Provider.csproj" --no-restore -c Release -o /app/publish - -FROM base AS final -WORKDIR /app -COPY --from=publish /app/publish . -ENTRYPOINT ["dotnet", "Pixel.Identity.Provider.dll"] \ No newline at end of file diff --git a/src/Pixel.Identity.Provider/Pixel.Identity.Provider.csproj b/src/Pixel.Identity.Provider/Pixel.Identity.Provider.csproj index 315067e..9a72001 100644 --- a/src/Pixel.Identity.Provider/Pixel.Identity.Provider.csproj +++ b/src/Pixel.Identity.Provider/Pixel.Identity.Provider.csproj @@ -5,9 +5,6 @@ Pixel.Identity.UI.Server-DBF95824-61B9-4155-ABD3-07F68D78DC36 Pixel.Identity.Provider Pixel.Identity.Provider - Linux - ..\.. - ..\..\docker-compose.dcproj ..\..\.builds\Identity @@ -18,7 +15,6 @@ - @@ -32,6 +28,7 @@ +