From 020c7b4fa2ddbf59e8a832bfd13f7e414a89b28e Mon Sep 17 00:00:00 2001 From: kct949 Date: Thu, 16 Mar 2023 00:21:15 +0100 Subject: [PATCH] trying to throw everything at the problem --- src/ApiGateways/Mobile.Bff.Shopping/aggregator/Dockerfile | 1 + src/ApiGateways/Web.Bff.Shopping/aggregator/Dockerfile | 3 +++ .../EventBus/EventBusKafka/EventBusKafka.csproj | 4 ++-- src/Services/Basket/Basket.API/Basket.API.csproj | 3 ++- src/Services/Basket/Basket.API/Dockerfile.develop | 2 +- src/Services/Catalog/Catalog.API/Dockerfile | 2 ++ src/Services/Catalog/Catalog.API/Dockerfile.develop | 2 +- src/Services/Identity/Identity.API/Dockerfile | 1 + src/Services/Ordering/Ordering.API/Dockerfile | 3 +++ src/Services/Ordering/Ordering.API/Dockerfile.develop | 2 +- src/Services/Ordering/Ordering.BackgroundTasks/Dockerfile | 2 ++ .../Ordering.BackgroundTasks/Ordering.BackgroundTasks.csproj | 2 +- src/Services/Ordering/Ordering.SignalrHub/Dockerfile | 2 ++ src/Services/Payment/Payment.API/Dockerfile | 3 +++ src/Services/Payment/Payment.API/Dockerfile.develop | 2 +- src/Services/Webhooks/Webhooks.API/Dockerfile | 3 +++ src/Web/WebMVC/Dockerfile | 3 +++ src/Web/WebSPA/Dockerfile | 2 ++ src/Web/WebStatus/Dockerfile | 3 +++ src/Web/WebhookClient/Dockerfile | 3 +++ 20 files changed, 40 insertions(+), 8 deletions(-) diff --git a/src/ApiGateways/Mobile.Bff.Shopping/aggregator/Dockerfile b/src/ApiGateways/Mobile.Bff.Shopping/aggregator/Dockerfile index 693c03fdb..bbf76f75e 100644 --- a/src/ApiGateways/Mobile.Bff.Shopping/aggregator/Dockerfile +++ b/src/ApiGateways/Mobile.Bff.Shopping/aggregator/Dockerfile @@ -4,6 +4,7 @@ EXPOSE 80 FROM mcr.microsoft.com/dotnet/sdk:7.0 AS build WORKDIR /src +RUN bash -c 'echo -e "Running Mobile.Bff.Shopping"' # It's important to keep lines from here down to "COPY . ." identical in all Dockerfiles # to take advantage of Docker's build cache, to speed up local container builds diff --git a/src/ApiGateways/Web.Bff.Shopping/aggregator/Dockerfile b/src/ApiGateways/Web.Bff.Shopping/aggregator/Dockerfile index 532986893..70690c896 100644 --- a/src/ApiGateways/Web.Bff.Shopping/aggregator/Dockerfile +++ b/src/ApiGateways/Web.Bff.Shopping/aggregator/Dockerfile @@ -1,3 +1,5 @@ + + FROM mcr.microsoft.com/dotnet/aspnet:7.0 AS base WORKDIR /app EXPOSE 80 @@ -5,6 +7,7 @@ EXPOSE 80 FROM mcr.microsoft.com/dotnet/sdk:7.0 AS build WORKDIR /src +RUN bash -c 'echo -e "Running Web.Bff.Shopping"' # It's important to keep lines from here down to "COPY . ." identical in all Dockerfiles # to take advantage of Docker's build cache, to speed up local container builds COPY "eShopOnContainers-ServicesAndWebApps.sln" "eShopOnContainers-ServicesAndWebApps.sln" diff --git a/src/BuildingBlocks/EventBus/EventBusKafka/EventBusKafka.csproj b/src/BuildingBlocks/EventBus/EventBusKafka/EventBusKafka.csproj index 74961ceff..1f6075bd1 100644 --- a/src/BuildingBlocks/EventBus/EventBusKafka/EventBusKafka.csproj +++ b/src/BuildingBlocks/EventBus/EventBusKafka/EventBusKafka.csproj @@ -3,7 +3,7 @@ net7.0 enable - enable + disable @@ -13,7 +13,7 @@ - + diff --git a/src/Services/Basket/Basket.API/Basket.API.csproj b/src/Services/Basket/Basket.API/Basket.API.csproj index 21fead841..ff475b22b 100644 --- a/src/Services/Basket/Basket.API/Basket.API.csproj +++ b/src/Services/Basket/Basket.API/Basket.API.csproj @@ -13,7 +13,8 @@ - + + diff --git a/src/Services/Basket/Basket.API/Dockerfile.develop b/src/Services/Basket/Basket.API/Dockerfile.develop index cf5811bae..4d293076d 100644 --- a/src/Services/Basket/Basket.API/Dockerfile.develop +++ b/src/Services/Basket/Basket.API/Dockerfile.develop @@ -8,7 +8,7 @@ WORKDIR /src COPY ["BuildingBlocks/EventBus/EventBus/EventBus.csproj", "BuildingBlocks/EventBus/EventBus/"] COPY ["BuildingBlocks/EventBus/EventBusRabbitMQ/EventBusRabbitMQ.csproj", "BuildingBlocks/EventBus/EventBusRabbitMQ/"] -COPY ["BuildingBlocks/EventBus/EventBusKafka/EventBusKafka.csproj" "BuildingBlocks/EventBus/EventBusKafka/"] +COPY ["BuildingBlocks/EventBus/EventBusKafka/EventBusKafka.csproj", "BuildingBlocks/EventBus/EventBusKafka/"] COPY ["BuildingBlocks/EventBus/EventBusServiceBus/EventBusServiceBus.csproj", "BuildingBlocks/EventBus/EventBusServiceBus/"] COPY ["Services/Basket/Basket.API/Basket.API.csproj", "Services/Basket/Basket.API/"] COPY ["NuGet.config", "NuGet.config"] diff --git a/src/Services/Catalog/Catalog.API/Dockerfile b/src/Services/Catalog/Catalog.API/Dockerfile index b55554187..f55c28fb6 100644 --- a/src/Services/Catalog/Catalog.API/Dockerfile +++ b/src/Services/Catalog/Catalog.API/Dockerfile @@ -1,3 +1,4 @@ + FROM mcr.microsoft.com/dotnet/aspnet:7.0 AS base WORKDIR /app EXPOSE 80 @@ -6,6 +7,7 @@ EXPOSE 443 FROM mcr.microsoft.com/dotnet/sdk:7.0 AS build WORKDIR /src +RUN bash -c 'echo -e "Running Catalog.API"' # It's important to keep lines from here down to "COPY . ." identical in all Dockerfiles # to take advantage of Docker's build cache, to speed up local container builds COPY "eShopOnContainers-ServicesAndWebApps.sln" "eShopOnContainers-ServicesAndWebApps.sln" diff --git a/src/Services/Catalog/Catalog.API/Dockerfile.develop b/src/Services/Catalog/Catalog.API/Dockerfile.develop index b7f911dd7..3ded147a5 100644 --- a/src/Services/Catalog/Catalog.API/Dockerfile.develop +++ b/src/Services/Catalog/Catalog.API/Dockerfile.develop @@ -8,7 +8,7 @@ WORKDIR /src COPY ["BuildingBlocks/EventBus/EventBus/EventBus.csproj", "BuildingBlocks/EventBus/EventBus/"] COPY ["BuildingBlocks/EventBus/EventBusRabbitMQ/EventBusRabbitMQ.csproj", "BuildingBlocks/EventBus/EventBusRabbitMQ/"] -COPY ["BuildingBlocks/EventBus/EventBusKafka/EventBusKafka.csproj" "BuildingBlocks/EventBus/EventBusKafka/"] +COPY ["BuildingBlocks/EventBus/EventBusKafka/EventBusKafka.csproj", "BuildingBlocks/EventBus/EventBusKafka/"] COPY ["BuildingBlocks/EventBus/EventBusServiceBus/EventBusServiceBus.csproj", "BuildingBlocks/EventBus/EventBusServiceBus/"] COPY ["BuildingBlocks/EventBus/IntegrationEventLogEF/IntegrationEventLogEF.csproj", "BuildingBlocks/EventBus/IntegrationEventLogEF/"] COPY ["BuildingBlocks/WebHostCustomization/WebHost.Customization/WebHost.Customization.csproj", "BuildingBlocks/WebHostCustomization/WebHost.Customization/"] diff --git a/src/Services/Identity/Identity.API/Dockerfile b/src/Services/Identity/Identity.API/Dockerfile index 78c55535e..b5d70e68e 100644 --- a/src/Services/Identity/Identity.API/Dockerfile +++ b/src/Services/Identity/Identity.API/Dockerfile @@ -5,6 +5,7 @@ EXPOSE 80 FROM mcr.microsoft.com/dotnet/sdk:7.0 AS build WORKDIR /src +RUN bash -c 'echo -e "Running Identity.API"' # It's important to keep lines from here down to "COPY . ." identical in all Dockerfiles # to take advantage of Docker's build cache, to speed up local container builds COPY "eShopOnContainers-ServicesAndWebApps.sln" "eShopOnContainers-ServicesAndWebApps.sln" diff --git a/src/Services/Ordering/Ordering.API/Dockerfile b/src/Services/Ordering/Ordering.API/Dockerfile index cefe66395..1e7cd7fa6 100644 --- a/src/Services/Ordering/Ordering.API/Dockerfile +++ b/src/Services/Ordering/Ordering.API/Dockerfile @@ -1,3 +1,5 @@ + + FROM mcr.microsoft.com/dotnet/aspnet:7.0 AS base WORKDIR /app EXPOSE 80 @@ -5,6 +7,7 @@ EXPOSE 80 FROM mcr.microsoft.com/dotnet/sdk:7.0 AS build WORKDIR /src +RUN bash -c 'echo -e "Running Ordering.API"' # It's important to keep lines from here down to "COPY . ." identical in all Dockerfiles # to take advantage of Docker's build cache, to speed up local container builds COPY "eShopOnContainers-ServicesAndWebApps.sln" "eShopOnContainers-ServicesAndWebApps.sln" diff --git a/src/Services/Ordering/Ordering.API/Dockerfile.develop b/src/Services/Ordering/Ordering.API/Dockerfile.develop index f0fd43dc7..faa8389e5 100644 --- a/src/Services/Ordering/Ordering.API/Dockerfile.develop +++ b/src/Services/Ordering/Ordering.API/Dockerfile.develop @@ -6,7 +6,7 @@ EXPOSE 80 WORKDIR /src COPY ["BuildingBlocks/EventBus/EventBus/EventBus.csproj", "BuildingBlocks/EventBus/EventBus/"] -COPY "BuildingBlocks/EventBus/EventBusKafka/EventBusKafka.csproj" "BuildingBlocks/EventBus/EventBusKafka/EventBusKafka.csproj" +COPY ["BuildingBlocks/EventBus/EventBusKafka/EventBusKafka.csproj", "BuildingBlocks/EventBus/EventBusKafka/"] COPY ["BuildingBlocks/EventBus/EventBusRabbitMQ/EventBusRabbitMQ.csproj", "BuildingBlocks/EventBus/EventBusRabbitMQ/"] COPY ["BuildingBlocks/EventBus/EventBusServiceBus/EventBusServiceBus.csproj", "BuildingBlocks/EventBus/EventBusServiceBus/"] COPY ["BuildingBlocks/EventBus/IntegrationEventLogEF/IntegrationEventLogEF.csproj", "BuildingBlocks/EventBus/IntegrationEventLogEF/"] diff --git a/src/Services/Ordering/Ordering.BackgroundTasks/Dockerfile b/src/Services/Ordering/Ordering.BackgroundTasks/Dockerfile index 7d640ab27..52fa303e9 100644 --- a/src/Services/Ordering/Ordering.BackgroundTasks/Dockerfile +++ b/src/Services/Ordering/Ordering.BackgroundTasks/Dockerfile @@ -1,9 +1,11 @@ + FROM mcr.microsoft.com/dotnet/aspnet:7.0 AS base WORKDIR /app EXPOSE 80 FROM mcr.microsoft.com/dotnet/sdk:7.0 AS build WORKDIR /src +RUN bash -c 'echo -e "Running Ordering.BackgroundTasks"' # It's important to keep lines from here down to "COPY . ." identical in all Dockerfiles # to take advantage of Docker's build cache, to speed up local container builds diff --git a/src/Services/Ordering/Ordering.BackgroundTasks/Ordering.BackgroundTasks.csproj b/src/Services/Ordering/Ordering.BackgroundTasks/Ordering.BackgroundTasks.csproj index ba89b27a4..f8fbc9156 100644 --- a/src/Services/Ordering/Ordering.BackgroundTasks/Ordering.BackgroundTasks.csproj +++ b/src/Services/Ordering/Ordering.BackgroundTasks/Ordering.BackgroundTasks.csproj @@ -16,7 +16,7 @@ - + diff --git a/src/Services/Ordering/Ordering.SignalrHub/Dockerfile b/src/Services/Ordering/Ordering.SignalrHub/Dockerfile index 9d0c15a14..af70c98d0 100644 --- a/src/Services/Ordering/Ordering.SignalrHub/Dockerfile +++ b/src/Services/Ordering/Ordering.SignalrHub/Dockerfile @@ -1,9 +1,11 @@ + FROM mcr.microsoft.com/dotnet/aspnet:7.0 AS base WORKDIR /app EXPOSE 80 FROM mcr.microsoft.com/dotnet/sdk:7.0 AS build WORKDIR /src +RUN bash -c 'echo -e "Running Ordering.SignalrHub"' # It's important to keep lines from here down to "COPY . ." identical in all Dockerfiles # to take advantage of Docker's build cache, to speed up local container builds diff --git a/src/Services/Payment/Payment.API/Dockerfile b/src/Services/Payment/Payment.API/Dockerfile index 58ec2f491..6da6b8acd 100644 --- a/src/Services/Payment/Payment.API/Dockerfile +++ b/src/Services/Payment/Payment.API/Dockerfile @@ -1,9 +1,12 @@ + + FROM mcr.microsoft.com/dotnet/aspnet:7.0 AS base WORKDIR /app EXPOSE 80 FROM mcr.microsoft.com/dotnet/sdk:7.0 AS build WORKDIR /src +RUN bash -c 'echo -e "Running Payment.API"' # It's important to keep lines from here down to "COPY . ." identical in all Dockerfiles # to take advantage of Docker's build cache, to speed up local container builds diff --git a/src/Services/Payment/Payment.API/Dockerfile.develop b/src/Services/Payment/Payment.API/Dockerfile.develop index 904f7357b..7bfc43394 100644 --- a/src/Services/Payment/Payment.API/Dockerfile.develop +++ b/src/Services/Payment/Payment.API/Dockerfile.develop @@ -7,7 +7,7 @@ EXPOSE 80 WORKDIR /src COPY ["BuildingBlocks/EventBus/EventBus/EventBus.csproj", "BuildingBlocks/EventBus/EventBus/"] COPY ["BuildingBlocks/EventBus/EventBusRabbitMQ/EventBusRabbitMQ.csproj", "BuildingBlocks/EventBus/EventBusRabbitMQ/"] -COPY ["BuildingBlocks/EventBus/EventBusKafka/EventBusKafka.csproj" "BuildingBlocks/EventBus/EventBusKafka/"] +COPY ["BuildingBlocks/EventBus/EventBusKafka/EventBusKafka.csproj", "BuildingBlocks/EventBus/EventBusKafka/"] COPY ["BuildingBlocks/EventBus/EventBusServiceBus/EventBusServiceBus.csproj", "BuildingBlocks/EventBus/EventBusServiceBus/"] COPY ["BuildingBlocks/EventBus/IntegrationEventLogEF/IntegrationEventLogEF.csproj", "BuildingBlocks/EventBus/IntegrationEventLogEF/"] COPY ["Services/Payment/Payment.API/Payment.API.csproj", "Services/Payment/Payment.API/"] diff --git a/src/Services/Webhooks/Webhooks.API/Dockerfile b/src/Services/Webhooks/Webhooks.API/Dockerfile index f7cb45fb0..32b88b9f2 100644 --- a/src/Services/Webhooks/Webhooks.API/Dockerfile +++ b/src/Services/Webhooks/Webhooks.API/Dockerfile @@ -1,9 +1,12 @@ + + FROM mcr.microsoft.com/dotnet/aspnet:7.0 AS base WORKDIR /app EXPOSE 80 FROM mcr.microsoft.com/dotnet/sdk:7.0 AS build WORKDIR /src +RUN bash -c 'echo -e "Running Webhooks.API"' # It's important to keep lines from here down to "COPY . ." identical in all Dockerfiles # to take advantage of Docker's build cache, to speed up local container builds diff --git a/src/Web/WebMVC/Dockerfile b/src/Web/WebMVC/Dockerfile index f1e93adcc..c19ad09dd 100644 --- a/src/Web/WebMVC/Dockerfile +++ b/src/Web/WebMVC/Dockerfile @@ -1,9 +1,12 @@ + + FROM mcr.microsoft.com/dotnet/aspnet:7.0 AS base WORKDIR /app EXPOSE 80 FROM mcr.microsoft.com/dotnet/sdk:7.0 AS build WORKDIR /src +RUN bash -c 'echo -e "Running WebMVC"' # It's important to keep lines from here down to "COPY . ." identical in all Dockerfiles # to take advantage of Docker's build cache, to speed up local container builds diff --git a/src/Web/WebSPA/Dockerfile b/src/Web/WebSPA/Dockerfile index 2b3255f6b..cd20c3012 100644 --- a/src/Web/WebSPA/Dockerfile +++ b/src/Web/WebSPA/Dockerfile @@ -1,5 +1,6 @@ #See https://aka.ms/containerfastmode to understand how Visual Studio uses this Dockerfile to build your images for faster debugging. + ARG NODE_IMAGE=node:12.0 FROM mcr.microsoft.com/dotnet/aspnet:7.0 AS base WORKDIR /app @@ -16,6 +17,7 @@ RUN npm run build:prod FROM mcr.microsoft.com/dotnet/sdk:7.0 AS build WORKDIR /src +RUN bash -c 'echo -e "Running WebSPA"' # Create this "restore-solution" section by running ./Create-DockerfileSolutionRestore.ps1, to optimize build cache reuse COPY "eShopOnContainers-ServicesAndWebApps.sln" "eShopOnContainers-ServicesAndWebApps.sln" diff --git a/src/Web/WebStatus/Dockerfile b/src/Web/WebStatus/Dockerfile index b3ac9e55c..eee668cad 100644 --- a/src/Web/WebStatus/Dockerfile +++ b/src/Web/WebStatus/Dockerfile @@ -1,9 +1,12 @@ + + FROM mcr.microsoft.com/dotnet/aspnet:7.0 AS base WORKDIR /app EXPOSE 80 FROM mcr.microsoft.com/dotnet/sdk:7.0 AS build WORKDIR /src +RUN bash -c 'echo -e "Running WebStatus"' # It's important to keep lines from here down to "COPY . ." identical in all Dockerfiles # to take advantage of Docker's build cache, to speed up local container builds diff --git a/src/Web/WebhookClient/Dockerfile b/src/Web/WebhookClient/Dockerfile index a75f822d2..37c19f0d2 100644 --- a/src/Web/WebhookClient/Dockerfile +++ b/src/Web/WebhookClient/Dockerfile @@ -6,6 +6,9 @@ EXPOSE 443 FROM mcr.microsoft.com/dotnet/sdk:7.0 AS build WORKDIR /src +RUN bash -c 'echo -e "Running WebhookClient"' + + # It's important to keep lines from here down to "COPY . ." identical in all Dockerfiles # to take advantage of Docker's build cache, to speed up local container builds COPY "eShopOnContainers-ServicesAndWebApps.sln" "eShopOnContainers-ServicesAndWebApps.sln"