Browse Source

Uncommented ApplicationInsights.

Reverted ESHOP_OCELOT_VOLUME_SPEC variable to docker-compose.override.
Changed 2.1.3-aspnetcore-runtime and 2.1.401-sdk in Docker files from microsoft/dotnet-nightly to microsoft/dotnet.
pull/709/head
v-rodudi 6 years ago
parent
commit
7209a6e4bf
36 changed files with 55 additions and 55 deletions
  1. +4
    -4
      docker-compose.override.yml
  2. +2
    -2
      src/ApiGateways/ApiGw-Base/Dockerfile
  3. +2
    -2
      src/ApiGateways/Mobile.Bff.Shopping/aggregator/Dockerfile
  4. +2
    -2
      src/ApiGateways/Web.Bff.Shopping/aggregator/Dockerfile
  5. +2
    -2
      src/Services/Basket/Basket.API/Dockerfile
  6. +1
    -1
      src/Services/Basket/Basket.API/Program.cs
  7. +1
    -1
      src/Services/Basket/Basket.API/Startup.cs
  8. +2
    -2
      src/Services/Catalog/Catalog.API/Dockerfile
  9. +1
    -1
      src/Services/Catalog/Catalog.API/Program.cs
  10. +1
    -1
      src/Services/Catalog/Catalog.API/Startup.cs
  11. +2
    -2
      src/Services/Identity/Identity.API/Dockerfile
  12. +1
    -1
      src/Services/Identity/Identity.API/Program.cs
  13. +1
    -1
      src/Services/Identity/Identity.API/Startup.cs
  14. +2
    -2
      src/Services/Location/Locations.API/Dockerfile
  15. +1
    -1
      src/Services/Location/Locations.API/Program.cs
  16. +1
    -1
      src/Services/Location/Locations.API/Startup.cs
  17. +2
    -2
      src/Services/Marketing/Marketing.API/Dockerfile
  18. +2
    -2
      src/Services/Marketing/Marketing.API/Program.cs
  19. +1
    -1
      src/Services/Marketing/Marketing.API/Startup.cs
  20. +2
    -2
      src/Services/Ordering/Ordering.API/Dockerfile
  21. +1
    -1
      src/Services/Ordering/Ordering.API/Program.cs
  22. +1
    -1
      src/Services/Ordering/Ordering.API/Startup.cs
  23. +2
    -2
      src/Services/Ordering/Ordering.BackgroundTasks/Dockerfile
  24. +2
    -2
      src/Services/Ordering/Ordering.SignalrHub/Dockerfile
  25. +2
    -2
      src/Services/Payment/Payment.API/Dockerfile
  26. +1
    -1
      src/Services/Payment/Payment.API/Program.cs
  27. +1
    -1
      src/Services/Payment/Payment.API/Startup.cs
  28. +2
    -2
      src/Web/WebMVC/Dockerfile
  29. +1
    -1
      src/Web/WebMVC/Program.cs
  30. +1
    -1
      src/Web/WebMVC/Startup.cs
  31. +2
    -2
      src/Web/WebSPA/Dockerfile
  32. +1
    -1
      src/Web/WebSPA/Program.cs
  33. +1
    -1
      src/Web/WebSPA/Startup.cs
  34. +2
    -2
      src/Web/WebStatus/Dockerfile
  35. +1
    -1
      src/Web/WebStatus/Program.cs
  36. +1
    -1
      src/Web/WebStatus/Startup.cs

+ 4
- 4
docker-compose.override.yml View File

@ -190,7 +190,7 @@ services:
ports: ports:
- "5200:80" - "5200:80"
volumes: volumes:
- ./src/ApiGateways/Mobile.Bff.Shopping/apigw:/app/configuration
- ./src/ApiGateways/Mobile.Bff.Shopping/apigw:${ESHOP_OCELOT_VOLUME_SPEC:-/app/configuration}
mobilemarketingapigw: mobilemarketingapigw:
environment: environment:
@ -199,7 +199,7 @@ services:
ports: ports:
- "5201:80" - "5201:80"
volumes: volumes:
- ./src/ApiGateways/Mobile.Bff.Marketing/apigw:/app/configuration
- ./src/ApiGateways/Mobile.Bff.Marketing/apigw:${ESHOP_OCELOT_VOLUME_SPEC:-/app/configuration}
webshoppingapigw: webshoppingapigw:
environment: environment:
@ -208,7 +208,7 @@ services:
ports: ports:
- "5202:80" - "5202:80"
volumes: volumes:
- ./src/ApiGateways/Web.Bff.Shopping/apigw:/app/configuration
- ./src/ApiGateways/Web.Bff.Shopping/apigw:${ESHOP_OCELOT_VOLUME_SPEC:-/app/configuration}
webmarketingapigw: webmarketingapigw:
environment: environment:
@ -217,7 +217,7 @@ services:
ports: ports:
- "5203:80" - "5203:80"
volumes: volumes:
- ./src/ApiGateways/Web.Bff.Marketing/apigw:/app/configuration
- ./src/ApiGateways/Web.Bff.Marketing/apigw:${ESHOP_OCELOT_VOLUME_SPEC:-/app/configuration}
mobileshoppingagg: mobileshoppingagg:
environment: environment:


+ 2
- 2
src/ApiGateways/ApiGw-Base/Dockerfile View File

@ -1,8 +1,8 @@
FROM microsoft/dotnet-nightly:2.1.3-aspnetcore-runtime AS base
FROM microsoft/dotnet:2.1.3-aspnetcore-runtime AS base
WORKDIR /app WORKDIR /app
EXPOSE 80 EXPOSE 80
FROM microsoft/dotnet-nightly:2.1.401-sdk AS build
FROM microsoft/dotnet:2.1.401-sdk AS build
WORKDIR /src WORKDIR /src
COPY src/ApiGateways/ApiGw-Base/OcelotApiGw.csproj src/ApiGateways/ApiGw-Base/ COPY src/ApiGateways/ApiGw-Base/OcelotApiGw.csproj src/ApiGateways/ApiGw-Base/
RUN dotnet restore src/ApiGateways/ApiGw-Base/ RUN dotnet restore src/ApiGateways/ApiGw-Base/


+ 2
- 2
src/ApiGateways/Mobile.Bff.Shopping/aggregator/Dockerfile View File

@ -1,8 +1,8 @@
FROM microsoft/dotnet-nightly:2.1.3-aspnetcore-runtime AS base
FROM microsoft/dotnet:2.1.3-aspnetcore-runtime AS base
WORKDIR /app WORKDIR /app
EXPOSE 80 EXPOSE 80
FROM microsoft/dotnet-nightly:2.1.401-sdk AS build
FROM microsoft/dotnet:2.1.401-sdk AS build
WORKDIR /src WORKDIR /src
COPY . . COPY . .
WORKDIR /src/src/ApiGateways/Mobile.Bff.Shopping/aggregator WORKDIR /src/src/ApiGateways/Mobile.Bff.Shopping/aggregator


+ 2
- 2
src/ApiGateways/Web.Bff.Shopping/aggregator/Dockerfile View File

@ -1,8 +1,8 @@
FROM microsoft/dotnet-nightly:2.1.3-aspnetcore-runtime AS base
FROM microsoft/dotnet:2.1.3-aspnetcore-runtime AS base
WORKDIR /app WORKDIR /app
EXPOSE 80 EXPOSE 80
FROM microsoft/dotnet-nightly:2.1.401-sdk AS build
FROM microsoft/dotnet:2.1.401-sdk AS build
WORKDIR /src WORKDIR /src
COPY . . COPY . .
WORKDIR /src/src/ApiGateways/Web.Bff.Shopping/aggregator WORKDIR /src/src/ApiGateways/Web.Bff.Shopping/aggregator


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

@ -1,8 +1,8 @@
FROM microsoft/dotnet-nightly:2.1.3-aspnetcore-runtime AS base
FROM microsoft/dotnet:2.1.3-aspnetcore-runtime AS base
WORKDIR /app WORKDIR /app
EXPOSE 80 EXPOSE 80
FROM microsoft/dotnet-nightly:2.1.401-sdk AS build
FROM microsoft/dotnet:2.1.401-sdk AS build
WORKDIR /src WORKDIR /src
COPY . . COPY . .
WORKDIR /src/src/Services/Basket/Basket.API WORKDIR /src/src/Services/Basket/Basket.API


+ 1
- 1
src/Services/Basket/Basket.API/Program.cs View File

@ -49,7 +49,7 @@ namespace Microsoft.eShopOnContainers.Services.Basket.API
builder.AddConsole(); builder.AddConsole();
builder.AddDebug(); builder.AddDebug();
}) })
//.UseApplicationInsights()
.UseApplicationInsights()
.Build(); .Build();
} }
} }

+ 1
- 1
src/Services/Basket/Basket.API/Startup.cs View File

@ -215,7 +215,7 @@ namespace Microsoft.eShopOnContainers.Services.Basket.API
private void RegisterAppInsights(IServiceCollection services) private void RegisterAppInsights(IServiceCollection services)
{ {
//services.AddApplicationInsightsTelemetry(Configuration);
services.AddApplicationInsightsTelemetry(Configuration);
var orchestratorType = Configuration.GetValue<string>("OrchestratorType"); var orchestratorType = Configuration.GetValue<string>("OrchestratorType");
if (orchestratorType?.ToUpper() == "K8S") if (orchestratorType?.ToUpper() == "K8S")


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

@ -1,8 +1,8 @@
FROM microsoft/dotnet-nightly:2.1.3-aspnetcore-runtime AS base
FROM microsoft/dotnet:2.1.3-aspnetcore-runtime AS base
WORKDIR /app WORKDIR /app
EXPOSE 80 EXPOSE 80
FROM microsoft/dotnet-nightly:2.1.401-sdk AS build
FROM microsoft/dotnet:2.1.401-sdk AS build
WORKDIR /src WORKDIR /src
COPY . . COPY . .
WORKDIR /src/src/Services/Catalog/Catalog.API WORKDIR /src/src/Services/Catalog/Catalog.API


+ 1
- 1
src/Services/Catalog/Catalog.API/Program.cs View File

@ -33,7 +33,7 @@ namespace Microsoft.eShopOnContainers.Services.Catalog.API
public static IWebHost BuildWebHost(string[] args) => public static IWebHost BuildWebHost(string[] args) =>
WebHost.CreateDefaultBuilder(args) WebHost.CreateDefaultBuilder(args)
.UseStartup<Startup>() .UseStartup<Startup>()
//.UseApplicationInsights()
.UseApplicationInsights()
.UseHealthChecks("/hc") .UseHealthChecks("/hc")
.UseContentRoot(Directory.GetCurrentDirectory()) .UseContentRoot(Directory.GetCurrentDirectory())
.UseWebRoot("Pics") .UseWebRoot("Pics")


+ 1
- 1
src/Services/Catalog/Catalog.API/Startup.cs View File

@ -101,7 +101,7 @@ namespace Microsoft.eShopOnContainers.Services.Catalog.API
{ {
public static IServiceCollection AddAppInsight(this IServiceCollection services, IConfiguration configuration) public static IServiceCollection AddAppInsight(this IServiceCollection services, IConfiguration configuration)
{ {
//services.AddApplicationInsightsTelemetry(configuration);
services.AddApplicationInsightsTelemetry(configuration);
var orchestratorType = configuration.GetValue<string>("OrchestratorType"); var orchestratorType = configuration.GetValue<string>("OrchestratorType");
if (orchestratorType?.ToUpper() == "K8S") if (orchestratorType?.ToUpper() == "K8S")


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

@ -1,9 +1,9 @@
ARG NODE_IMAGE=node:8.11 ARG NODE_IMAGE=node:8.11
FROM microsoft/dotnet-nightly:2.1.3-aspnetcore-runtime AS base
FROM microsoft/dotnet:2.1.3-aspnetcore-runtime AS base
WORKDIR /app WORKDIR /app
EXPOSE 80 EXPOSE 80
FROM microsoft/dotnet-nightly:2.1.401-sdk as dotnet-build
FROM microsoft/dotnet:2.1.401-sdk as dotnet-build
WORKDIR /src WORKDIR /src
FROM ${NODE_IMAGE} as node-build FROM ${NODE_IMAGE} as node-build


+ 1
- 1
src/Services/Identity/Identity.API/Program.cs View File

@ -68,7 +68,7 @@ namespace Microsoft.eShopOnContainers.Services.Identity.API
builder.AddConsole(); builder.AddConsole();
builder.AddDebug(); builder.AddDebug();
}) })
//.UseApplicationInsights()
.UseApplicationInsights()
.Build(); .Build();
} }
} }


+ 1
- 1
src/Services/Identity/Identity.API/Startup.cs View File

@ -165,7 +165,7 @@ namespace Microsoft.eShopOnContainers.Services.Identity.API
private void RegisterAppInsights(IServiceCollection services) private void RegisterAppInsights(IServiceCollection services)
{ {
//services.AddApplicationInsightsTelemetry(Configuration);
services.AddApplicationInsightsTelemetry(Configuration);
var orchestratorType = Configuration.GetValue<string>("OrchestratorType"); var orchestratorType = Configuration.GetValue<string>("OrchestratorType");
if (orchestratorType?.ToUpper() == "K8S") if (orchestratorType?.ToUpper() == "K8S")


+ 2
- 2
src/Services/Location/Locations.API/Dockerfile View File

@ -1,8 +1,8 @@
FROM microsoft/dotnet-nightly:2.1.3-aspnetcore-runtime AS base
FROM microsoft/dotnet:2.1.3-aspnetcore-runtime AS base
WORKDIR /app WORKDIR /app
EXPOSE 80 EXPOSE 80
FROM microsoft/dotnet-nightly:2.1.401-sdk AS build
FROM microsoft/dotnet:2.1.401-sdk AS build
WORKDIR /src WORKDIR /src
COPY . . COPY . .
WORKDIR /src/src/Services/Location/Locations.API WORKDIR /src/src/Services/Location/Locations.API


+ 1
- 1
src/Services/Location/Locations.API/Program.cs View File

@ -44,7 +44,7 @@ namespace Microsoft.eShopOnContainers.Services.Locations.API
builder.AddConsole(); builder.AddConsole();
builder.AddDebug(); builder.AddDebug();
}) })
//.UseApplicationInsights()
.UseApplicationInsights()
.Build(); .Build();
} }
} }

+ 1
- 1
src/Services/Location/Locations.API/Startup.cs View File

@ -186,7 +186,7 @@ namespace Microsoft.eShopOnContainers.Services.Locations.API
private void RegisterAppInsights(IServiceCollection services) private void RegisterAppInsights(IServiceCollection services)
{ {
//services.AddApplicationInsightsTelemetry(Configuration);
services.AddApplicationInsightsTelemetry(Configuration);
var orchestratorType = Configuration.GetValue<string>("OrchestratorType"); var orchestratorType = Configuration.GetValue<string>("OrchestratorType");
if (orchestratorType?.ToUpper() == "K8S") if (orchestratorType?.ToUpper() == "K8S")


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

@ -1,8 +1,8 @@
FROM microsoft/dotnet-nightly:2.1.3-aspnetcore-runtime AS base
FROM microsoft/dotnet:2.1.3-aspnetcore-runtime AS base
WORKDIR /app WORKDIR /app
EXPOSE 80 EXPOSE 80
FROM microsoft/dotnet-nightly:2.1.401-sdk AS build
FROM microsoft/dotnet:2.1.401-sdk AS build
WORKDIR /src WORKDIR /src
COPY . . COPY . .
WORKDIR /src/src/Services/Marketing/Marketing.API WORKDIR /src/src/Services/Marketing/Marketing.API


+ 2
- 2
src/Services/Marketing/Marketing.API/Program.cs View File

@ -27,7 +27,7 @@
public static IWebHost BuildWebHost(string[] args) => public static IWebHost BuildWebHost(string[] args) =>
WebHost.CreateDefaultBuilder(args) WebHost.CreateDefaultBuilder(args)
//.UseApplicationInsights()
.UseApplicationInsights()
.UseHealthChecks("/hc") .UseHealthChecks("/hc")
.UseContentRoot(Directory.GetCurrentDirectory()) .UseContentRoot(Directory.GetCurrentDirectory())
.UseStartup<Startup>() .UseStartup<Startup>()
@ -56,7 +56,7 @@
builder.AddConsole(); builder.AddConsole();
builder.AddDebug(); builder.AddDebug();
}) })
//.UseApplicationInsights()
.UseApplicationInsights()
.Build(); .Build();
} }
} }

+ 1
- 1
src/Services/Marketing/Marketing.API/Startup.cs View File

@ -217,7 +217,7 @@
private void RegisterAppInsights(IServiceCollection services) private void RegisterAppInsights(IServiceCollection services)
{ {
//services.AddApplicationInsightsTelemetry(Configuration);
services.AddApplicationInsightsTelemetry(Configuration);
var orchestratorType = Configuration.GetValue<string>("OrchestratorType"); var orchestratorType = Configuration.GetValue<string>("OrchestratorType");
if (orchestratorType?.ToUpper() == "K8S") if (orchestratorType?.ToUpper() == "K8S")


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

@ -1,8 +1,8 @@
FROM microsoft/dotnet-nightly:2.1.3-aspnetcore-runtime AS base
FROM microsoft/dotnet:2.1.3-aspnetcore-runtime AS base
WORKDIR /app WORKDIR /app
EXPOSE 80 EXPOSE 80
FROM microsoft/dotnet-nightly:2.1.401-sdk AS build
FROM microsoft/dotnet:2.1.401-sdk AS build
WORKDIR /src WORKDIR /src
COPY . . COPY . .
WORKDIR /src/src/Services/Ordering/Ordering.API WORKDIR /src/src/Services/Ordering/Ordering.API


+ 1
- 1
src/Services/Ordering/Ordering.API/Program.cs View File

@ -60,7 +60,7 @@ namespace Microsoft.eShopOnContainers.Services.Ordering.API
builder.AddConsole(); builder.AddConsole();
builder.AddDebug(); builder.AddDebug();
}) })
//.UseApplicationInsights()
.UseApplicationInsights()
.Build(); .Build();
} }
} }

+ 1
- 1
src/Services/Ordering/Ordering.API/Startup.cs View File

@ -132,7 +132,7 @@
{ {
public static IServiceCollection AddApplicationInsights(this IServiceCollection services, IConfiguration configuration) public static IServiceCollection AddApplicationInsights(this IServiceCollection services, IConfiguration configuration)
{ {
//services.AddApplicationInsightsTelemetry(configuration);
services.AddApplicationInsightsTelemetry(configuration);
var orchestratorType = configuration.GetValue<string>("OrchestratorType"); var orchestratorType = configuration.GetValue<string>("OrchestratorType");
if (orchestratorType?.ToUpper() == "K8S") if (orchestratorType?.ToUpper() == "K8S")


+ 2
- 2
src/Services/Ordering/Ordering.BackgroundTasks/Dockerfile View File

@ -1,8 +1,8 @@
FROM microsoft/dotnet-nightly:2.1.3-aspnetcore-runtime AS base
FROM microsoft/dotnet:2.1.3-aspnetcore-runtime AS base
WORKDIR /app WORKDIR /app
EXPOSE 80 EXPOSE 80
FROM microsoft/dotnet-nightly:2.1.401-sdk AS build
FROM microsoft/dotnet:2.1.401-sdk AS build
WORKDIR /src WORKDIR /src
COPY . . COPY . .
WORKDIR /src/src/Services/Ordering/Ordering.BackgroundTasks WORKDIR /src/src/Services/Ordering/Ordering.BackgroundTasks


+ 2
- 2
src/Services/Ordering/Ordering.SignalrHub/Dockerfile View File

@ -1,8 +1,8 @@
FROM microsoft/dotnet-nightly:2.1.3-aspnetcore-runtime AS base
FROM microsoft/dotnet:2.1.3-aspnetcore-runtime AS base
WORKDIR /app WORKDIR /app
EXPOSE 80 EXPOSE 80
FROM microsoft/dotnet-nightly:2.1.401-sdk AS build
FROM microsoft/dotnet:2.1.401-sdk AS build
WORKDIR /src WORKDIR /src
COPY . . COPY . .
WORKDIR /src/src/Services/Ordering/Ordering.SignalrHub WORKDIR /src/src/Services/Ordering/Ordering.SignalrHub


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

@ -1,8 +1,8 @@
FROM microsoft/dotnet-nightly:2.1.3-aspnetcore-runtime AS base
FROM microsoft/dotnet:2.1.3-aspnetcore-runtime AS base
WORKDIR /app WORKDIR /app
EXPOSE 80 EXPOSE 80
FROM microsoft/dotnet-nightly:2.1.401-sdk AS build
FROM microsoft/dotnet:2.1.401-sdk AS build
WORKDIR /src WORKDIR /src
COPY . . COPY . .
WORKDIR /src/src/Services/Payment/Payment.API WORKDIR /src/src/Services/Payment/Payment.API


+ 1
- 1
src/Services/Payment/Payment.API/Program.cs View File

@ -29,7 +29,7 @@ namespace Payment.API
builder.AddConsole(); builder.AddConsole();
builder.AddDebug(); builder.AddDebug();
}) })
//.UseApplicationInsights()
.UseApplicationInsights()
.Build(); .Build();
} }
} }

+ 1
- 1
src/Services/Payment/Payment.API/Startup.cs View File

@ -112,7 +112,7 @@ namespace Payment.API
private void RegisterAppInsights(IServiceCollection services) private void RegisterAppInsights(IServiceCollection services)
{ {
//services.AddApplicationInsightsTelemetry(Configuration);
services.AddApplicationInsightsTelemetry(Configuration);
var orchestratorType = Configuration.GetValue<string>("OrchestratorType"); var orchestratorType = Configuration.GetValue<string>("OrchestratorType");
if (orchestratorType?.ToUpper() == "K8S") if (orchestratorType?.ToUpper() == "K8S")


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

@ -1,9 +1,9 @@
ARG NODE_IMAGE=node:8.11 ARG NODE_IMAGE=node:8.11
FROM microsoft/dotnet-nightly:2.1.3-aspnetcore-runtime AS base
FROM microsoft/dotnet:2.1.3-aspnetcore-runtime AS base
WORKDIR /app WORKDIR /app
EXPOSE 80 EXPOSE 80
FROM microsoft/dotnet-nightly:2.1.401-sdk as dotnet-build
FROM microsoft/dotnet:2.1.401-sdk as dotnet-build
WORKDIR /src WORKDIR /src
FROM ${NODE_IMAGE} as node-build FROM ${NODE_IMAGE} as node-build


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

@ -28,7 +28,7 @@ namespace Microsoft.eShopOnContainers.WebMVC
builder.AddConsole(); builder.AddConsole();
builder.AddDebug(); builder.AddDebug();
}) })
//.UseApplicationInsights()
.UseApplicationInsights()
.Build(); .Build();
} }
} }

+ 1
- 1
src/Web/WebMVC/Startup.cs View File

@ -105,7 +105,7 @@ namespace Microsoft.eShopOnContainers.WebMVC
public static IServiceCollection AddAppInsight(this IServiceCollection services, IConfiguration configuration) public static IServiceCollection AddAppInsight(this IServiceCollection services, IConfiguration configuration)
{ {
//services.AddApplicationInsightsTelemetry(configuration);
services.AddApplicationInsightsTelemetry(configuration);
var orchestratorType = configuration.GetValue<string>("OrchestratorType"); var orchestratorType = configuration.GetValue<string>("OrchestratorType");
if (orchestratorType?.ToUpper() == "K8S") if (orchestratorType?.ToUpper() == "K8S")


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

@ -1,9 +1,9 @@
ARG NODE_IMAGE=node:8.11 ARG NODE_IMAGE=node:8.11
FROM microsoft/dotnet-nightly:2.1.3-aspnetcore-runtime AS base
FROM microsoft/dotnet:2.1.3-aspnetcore-runtime AS base
WORKDIR /app WORKDIR /app
EXPOSE 80 EXPOSE 80
FROM microsoft/dotnet-nightly:2.1.401-sdk as dotnet-build
FROM microsoft/dotnet:2.1.401-sdk as dotnet-build
WORKDIR /src WORKDIR /src
FROM ${NODE_IMAGE} as node-build FROM ${NODE_IMAGE} as node-build


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

@ -28,7 +28,7 @@ namespace eShopConContainers.WebSPA
builder.AddConsole(); builder.AddConsole();
builder.AddDebug(); builder.AddDebug();
}) })
//.UseApplicationInsights()
.UseApplicationInsights()
.Build(); .Build();
} }
} }

+ 1
- 1
src/Web/WebSPA/Startup.cs View File

@ -139,7 +139,7 @@ namespace eShopConContainers.WebSPA
private void RegisterAppInsights(IServiceCollection services) private void RegisterAppInsights(IServiceCollection services)
{ {
//services.AddApplicationInsightsTelemetry(Configuration);
services.AddApplicationInsightsTelemetry(Configuration);
var orchestratorType = Configuration.GetValue<string>("OrchestratorType"); var orchestratorType = Configuration.GetValue<string>("OrchestratorType");
if (orchestratorType?.ToUpper() == "K8S") if (orchestratorType?.ToUpper() == "K8S")


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

@ -1,8 +1,8 @@
FROM microsoft/dotnet-nightly:2.1.3-aspnetcore-runtime AS base
FROM microsoft/dotnet:2.1.3-aspnetcore-runtime AS base
WORKDIR /app WORKDIR /app
EXPOSE 80 EXPOSE 80
FROM microsoft/dotnet-nightly:2.1.401-sdk AS build
FROM microsoft/dotnet:2.1.401-sdk AS build
WORKDIR /src WORKDIR /src
COPY . . COPY . .
WORKDIR /src/src/Web/WebStatus WORKDIR /src/src/Web/WebStatus


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

@ -27,7 +27,7 @@ namespace WebStatus
builder.AddConsole(); builder.AddConsole();
builder.AddDebug(); builder.AddDebug();
}) })
//.UseApplicationInsights()
.UseApplicationInsights()
.Build(); .Build();
} }
} }

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

@ -91,7 +91,7 @@ namespace WebStatus
private void RegisterAppInsights(IServiceCollection services) private void RegisterAppInsights(IServiceCollection services)
{ {
//services.AddApplicationInsightsTelemetry(Configuration);
services.AddApplicationInsightsTelemetry(Configuration);
var orchestratorType = Configuration.GetValue<string>("OrchestratorType"); var orchestratorType = Configuration.GetValue<string>("OrchestratorType");
if (orchestratorType?.ToUpper() == "K8S") if (orchestratorType?.ToUpper() == "K8S")


Loading…
Cancel
Save