From 5f00cd91f49c6a86d5f2ea98c05c04e2d912c4d4 Mon Sep 17 00:00:00 2001 From: "patrick.brugiere" Date: Wed, 27 Mar 2024 17:12:48 +0100 Subject: [PATCH] ajout dockerfile --- Project/EntityFramework/API/API.csproj | 3 ++ Project/EntityFramework/API/API.csproj.user | 2 +- .../API/Properties/launchSettings.json | 45 ++++++++++++------- 3 files changed, 32 insertions(+), 18 deletions(-) diff --git a/Project/EntityFramework/API/API.csproj b/Project/EntityFramework/API/API.csproj index 3a41951..0a29e7c 100644 --- a/Project/EntityFramework/API/API.csproj +++ b/Project/EntityFramework/API/API.csproj @@ -5,6 +5,8 @@ enable enable $(MSBuildProjectDirectory) + 1540d456-1696-425e-b511-611542ce7c5e + Linux @@ -17,6 +19,7 @@ runtime; build; native; contentfiles; analyzers; buildtransitive + diff --git a/Project/EntityFramework/API/API.csproj.user b/Project/EntityFramework/API/API.csproj.user index 031db34..6e2004e 100644 --- a/Project/EntityFramework/API/API.csproj.user +++ b/Project/EntityFramework/API/API.csproj.user @@ -1,7 +1,7 @@  - https + Docker MvcControllerEmptyScaffolder root/Common/MVC/Controller diff --git a/Project/EntityFramework/API/Properties/launchSettings.json b/Project/EntityFramework/API/Properties/launchSettings.json index 87920c5..4aebf86 100644 --- a/Project/EntityFramework/API/Properties/launchSettings.json +++ b/Project/EntityFramework/API/Properties/launchSettings.json @@ -1,33 +1,24 @@ -{ - "$schema": "http://json.schemastore.org/launchsettings.json", - "iisSettings": { - "windowsAuthentication": false, - "anonymousAuthentication": true, - "iisExpress": { - "applicationUrl": "http://localhost:32547", - "sslPort": 44345 - } - }, +{ "profiles": { "http": { "commandName": "Project", - "dotnetRunMessages": true, "launchBrowser": true, "launchUrl": "swagger", - "applicationUrl": "http://localhost:5124", "environmentVariables": { "ASPNETCORE_ENVIRONMENT": "Development" - } + }, + "dotnetRunMessages": true, + "applicationUrl": "http://localhost:5124" }, "https": { "commandName": "Project", - "dotnetRunMessages": true, "launchBrowser": true, "launchUrl": "swagger", - "applicationUrl": "https://localhost:7013;http://localhost:5124", "environmentVariables": { "ASPNETCORE_ENVIRONMENT": "Development" - } + }, + "dotnetRunMessages": true, + "applicationUrl": "https://localhost:7013;http://localhost:5124" }, "IIS Express": { "commandName": "IISExpress", @@ -36,6 +27,26 @@ "environmentVariables": { "ASPNETCORE_ENVIRONMENT": "Development" } + }, + "Docker": { + "commandName": "Docker", + "launchBrowser": true, + "launchUrl": "{Scheme}://{ServiceHost}:{ServicePort}/swagger", + "environmentVariables": { + "ASPNETCORE_HTTPS_PORTS": "8081", + "ASPNETCORE_HTTP_PORTS": "8080" + }, + "publishAllPorts": true, + "useSSL": true + } + }, + "$schema": "http://json.schemastore.org/launchsettings.json", + "iisSettings": { + "windowsAuthentication": false, + "anonymousAuthentication": true, + "iisExpress": { + "applicationUrl": "http://localhost:32547", + "sslPort": 44345 } } -} +} \ No newline at end of file