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.
This commit is contained in:
v-rodudi 2018-08-24 18:05:42 +03:00
parent 281e4445bd
commit 7209a6e4bf
36 changed files with 55 additions and 55 deletions

View File

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

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
EXPOSE 80
FROM microsoft/dotnet-nightly:2.1.401-sdk AS build
FROM microsoft/dotnet:2.1.401-sdk AS build
WORKDIR /src
COPY src/ApiGateways/ApiGw-Base/OcelotApiGw.csproj src/ApiGateways/ApiGw-Base/
RUN dotnet restore src/ApiGateways/ApiGw-Base/

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
EXPOSE 80
FROM microsoft/dotnet-nightly:2.1.401-sdk AS build
FROM microsoft/dotnet:2.1.401-sdk AS build
WORKDIR /src
COPY . .
WORKDIR /src/src/ApiGateways/Mobile.Bff.Shopping/aggregator

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
EXPOSE 80
FROM microsoft/dotnet-nightly:2.1.401-sdk AS build
FROM microsoft/dotnet:2.1.401-sdk AS build
WORKDIR /src
COPY . .
WORKDIR /src/src/ApiGateways/Web.Bff.Shopping/aggregator

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
EXPOSE 80
FROM microsoft/dotnet-nightly:2.1.401-sdk AS build
FROM microsoft/dotnet:2.1.401-sdk AS build
WORKDIR /src
COPY . .
WORKDIR /src/src/Services/Basket/Basket.API

View File

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

View File

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

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
EXPOSE 80
FROM microsoft/dotnet-nightly:2.1.401-sdk AS build
FROM microsoft/dotnet:2.1.401-sdk AS build
WORKDIR /src
COPY . .
WORKDIR /src/src/Services/Catalog/Catalog.API

View File

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

View File

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

View File

@ -1,9 +1,9 @@
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
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
FROM ${NODE_IMAGE} as node-build

View File

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

View File

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

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
EXPOSE 80
FROM microsoft/dotnet-nightly:2.1.401-sdk AS build
FROM microsoft/dotnet:2.1.401-sdk AS build
WORKDIR /src
COPY . .
WORKDIR /src/src/Services/Location/Locations.API

View File

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

View File

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

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
EXPOSE 80
FROM microsoft/dotnet-nightly:2.1.401-sdk AS build
FROM microsoft/dotnet:2.1.401-sdk AS build
WORKDIR /src
COPY . .
WORKDIR /src/src/Services/Marketing/Marketing.API

View File

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

View File

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

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
EXPOSE 80
FROM microsoft/dotnet-nightly:2.1.401-sdk AS build
FROM microsoft/dotnet:2.1.401-sdk AS build
WORKDIR /src
COPY . .
WORKDIR /src/src/Services/Ordering/Ordering.API

View File

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

View File

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

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
EXPOSE 80
FROM microsoft/dotnet-nightly:2.1.401-sdk AS build
FROM microsoft/dotnet:2.1.401-sdk AS build
WORKDIR /src
COPY . .
WORKDIR /src/src/Services/Ordering/Ordering.BackgroundTasks

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
EXPOSE 80
FROM microsoft/dotnet-nightly:2.1.401-sdk AS build
FROM microsoft/dotnet:2.1.401-sdk AS build
WORKDIR /src
COPY . .
WORKDIR /src/src/Services/Ordering/Ordering.SignalrHub

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
EXPOSE 80
FROM microsoft/dotnet-nightly:2.1.401-sdk AS build
FROM microsoft/dotnet:2.1.401-sdk AS build
WORKDIR /src
COPY . .
WORKDIR /src/src/Services/Payment/Payment.API

View File

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

View File

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

View File

@ -1,9 +1,9 @@
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
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
FROM ${NODE_IMAGE} as node-build

View File

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

View File

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

View File

@ -1,9 +1,9 @@
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
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
FROM ${NODE_IMAGE} as node-build

View File

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

View File

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

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
EXPOSE 80
FROM microsoft/dotnet-nightly:2.1.401-sdk AS build
FROM microsoft/dotnet:2.1.401-sdk AS build
WORKDIR /src
COPY . .
WORKDIR /src/src/Web/WebStatus

View File

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

View File

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