Browse Source

dockerfiles and update nugets

pull/1559/head
Borja García Rodríguez 4 years ago
parent
commit
f25537e214
6 changed files with 11 additions and 7 deletions
  1. +2
    -2
      src/Services/Webhooks/Webhooks.API/Dockerfile
  2. +2
    -2
      src/Web/WebStatus/Dockerfile
  3. +1
    -1
      src/Web/WebStatus/Program.cs
  4. +4
    -1
      src/Web/WebStatus/Startup.cs
  5. +1
    -0
      src/Web/WebStatus/WebStatus.csproj
  6. +1
    -1
      src/Web/WebhookClient/Dockerfile

+ 2
- 2
src/Services/Webhooks/Webhooks.API/Dockerfile View File

@ -1,8 +1,8 @@
FROM mcr.microsoft.com/dotnet/core/aspnet:3.1 AS base
FROM mcr.microsoft.com/dotnet/aspnet:5.0 AS base
WORKDIR /app
EXPOSE 80
FROM mcr.microsoft.com/dotnet/core/sdk:3.1 AS build
FROM mcr.microsoft.com/dotnet/sdk:5.0 AS build
WORKDIR /src
# It's important to keep lines from here down to "COPY . ." identical in all Dockerfiles


+ 2
- 2
src/Web/WebStatus/Dockerfile View File

@ -1,8 +1,8 @@
FROM mcr.microsoft.com/dotnet/core/aspnet:3.1 AS base
FROM mcr.microsoft.com/dotnet/aspnet:5.0 AS base
WORKDIR /app
EXPOSE 80
FROM mcr.microsoft.com/dotnet/core/sdk:3.1 AS build
FROM mcr.microsoft.com/dotnet/sdk:5.0 AS build
WORKDIR /src
# It's important to keep lines from here down to "COPY . ." identical in all Dockerfiles


+ 1
- 1
src/Web/WebStatus/Program.cs View File

@ -116,5 +116,5 @@ void LogPackagesVersionInfo()
public class Program
{
private static readonly string _namespace = typeof(Startup).Namespace;
public static readonly string AppName = _namespace.Substring(_namespace.LastIndexOf('.', _namespace.LastIndexOf('.') - 1) + 1);
public static readonly string AppName = _namespace;
}

+ 4
- 1
src/Web/WebStatus/Startup.cs View File

@ -30,7 +30,10 @@ namespace WebStatus
services.AddHealthChecks()
.AddCheck("self", () => HealthCheckResult.Healthy());
services.AddHealthChecksUI();
services
.AddHealthChecksUI()
.AddInMemoryStorage();
services.AddMvc()
.SetCompatibilityVersion(CompatibilityVersion.Version_3_0);
}


+ 1
- 0
src/Web/WebStatus/WebStatus.csproj View File

@ -10,6 +10,7 @@
<ItemGroup>
<PackageReference Include="AspNetCore.HealthChecks.UI.Client" Version="3.1.2" />
<PackageReference Include="AspNetCore.HealthChecks.UI" Version="3.1.3" />
<PackageReference Include="AspNetCore.HealthChecks.UI.InMemory.Storage" Version="3.1.2" />
<PackageReference Include="AspNetCore.HealthChecks.Uris" Version="3.1.2" />
<PackageReference Include="Microsoft.ApplicationInsights.AspNetCore" Version="2.16.0" />
<PackageReference Include="Microsoft.ApplicationInsights.DependencyCollector" Version="2.16.0" />


+ 1
- 1
src/Web/WebhookClient/Dockerfile View File

@ -3,7 +3,7 @@ WORKDIR /app
EXPOSE 80
EXPOSE 443
FROM mcr.microsoft.com/dotnet/core/sdk:5.0 AS build
FROM mcr.microsoft.com/dotnet/sdk:5.0 AS build
WORKDIR /src
# It's important to keep lines from here down to "COPY . ." identical in all Dockerfiles


Loading…
Cancel
Save