From a105864e2e1a7c6e78548519ef7cac115b290aa9 Mon Sep 17 00:00:00 2001 From: jonkjetiloye <40996230+jonkjetiloye@users.noreply.github.com> Date: Fri, 29 Nov 2024 18:00:25 +0100 Subject: [PATCH] Chore/fix authorization dockerfile port and migration folder (#120) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * Added K6 tests and removed output integration tests * changed ignore to folder * Chore: fix port and migration folder in dockerfile --------- Co-authored-by: Jon Kjetil Øye --- src/apps/Altinn.Authorization/Dockerfile | 4 +++- .../src/Altinn.Authorization/Properties/launchSettings.json | 4 ++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/src/apps/Altinn.Authorization/Dockerfile b/src/apps/Altinn.Authorization/Dockerfile index 6d034091..4aafaf04 100644 --- a/src/apps/Altinn.Authorization/Dockerfile +++ b/src/apps/Altinn.Authorization/Dockerfile @@ -6,10 +6,12 @@ WORKDIR /src/apps/Altinn.Authorization/src/Altinn.Authorization RUN dotnet publish -c Release -o /app FROM mcr.microsoft.com/dotnet/aspnet:9.0-alpine AS final -EXPOSE 5110 +EXPOSE 5050 WORKDIR /app COPY --from=build /app . +COPY src/apps/Altinn.Authorization/src/Altinn.Authorization/Migration ./Migration + # setup the user and group # the user will have no password, using shell /bin/false and using the group dotnet RUN addgroup -g 3000 dotnet && adduser -u 1000 -G dotnet -D -s /bin/false dotnet diff --git a/src/apps/Altinn.Authorization/src/Altinn.Authorization/Properties/launchSettings.json b/src/apps/Altinn.Authorization/src/Altinn.Authorization/Properties/launchSettings.json index 76f9f305..db134c18 100644 --- a/src/apps/Altinn.Authorization/src/Altinn.Authorization/Properties/launchSettings.json +++ b/src/apps/Altinn.Authorization/src/Altinn.Authorization/Properties/launchSettings.json @@ -4,7 +4,7 @@ "windowsAuthentication": false, "anonymousAuthentication": true, "iisExpress": { - "applicationUrl": "http://localhost:49723" + "applicationUrl": "http://localhost:5050" } }, "profiles": { @@ -23,7 +23,7 @@ "applicationUrl": "http://localhost:5050", "environmentVariables": { "ASPNETCORE_ENVIRONMENT": "Development", - "ASPNETCORE_URLS": "http://localhost:5070" + "ASPNETCORE_URLS": "http://localhost:5050" } } }