From 3ec61e0df64097b7c6524fbe58fee7a6173c84ed Mon Sep 17 00:00:00 2001 From: etomas Date: Sat, 18 Mar 2017 11:13:20 +0100 Subject: [PATCH] Tried patch proposed by Sandeep Bansal --- _docker/redis/Dockerfile.nanowin | 2 ++ src/Services/Basket/Basket.API/Dockerfile.nanowin | 1 + src/Services/Catalog/Catalog.API/Dockerfile.nanowin | 1 + src/Services/Identity/Identity.API/Dockerfile.nanowin | 1 + src/Services/Ordering/Ordering.API/Dockerfile.nanowin | 1 + src/Web/WebMVC/Dockerfile.nanowin | 1 + src/Web/WebSPA/Dockerfile.nanowin | 1 + 7 files changed, 8 insertions(+) diff --git a/_docker/redis/Dockerfile.nanowin b/_docker/redis/Dockerfile.nanowin index 6a36d1947..a08bcb0b6 100644 --- a/_docker/redis/Dockerfile.nanowin +++ b/_docker/redis/Dockerfile.nanowin @@ -22,6 +22,8 @@ RUN Get-Content redis.windows.conf | Where { $_ -notmatch 'bind 127.0.0.1' } | S EXPOSE 6379 +RUN set-itemproperty -path 'HKLM:\SYSTEM\CurrentControlSet\Services\Dnscache\Parameters' -Name ServerPriorityTimeLimit -Value 0 -Type DWord + # Define our command to be run when launching the container CMD .\\redis-server.exe .\\redis.unprotected.conf --port 6379 ; \ Write-Host Redis Started... ; \ diff --git a/src/Services/Basket/Basket.API/Dockerfile.nanowin b/src/Services/Basket/Basket.API/Dockerfile.nanowin index 41127e339..0541a26cc 100644 --- a/src/Services/Basket/Basket.API/Dockerfile.nanowin +++ b/src/Services/Basket/Basket.API/Dockerfile.nanowin @@ -1,6 +1,7 @@ FROM microsoft/dotnet:1.1-runtime-nanoserver ARG source WORKDIR /app +RUN set-itemproperty -path 'HKLM:\SYSTEM\CurrentControlSet\Services\Dnscache\Parameters' -Name ServerPriorityTimeLimit -Value 0 -Type DWord EXPOSE 80 COPY ${source:-obj/Docker/publish} . ENTRYPOINT ["dotnet", "Basket.API.dll"] diff --git a/src/Services/Catalog/Catalog.API/Dockerfile.nanowin b/src/Services/Catalog/Catalog.API/Dockerfile.nanowin index 5aad21ad1..c40d3a4d0 100644 --- a/src/Services/Catalog/Catalog.API/Dockerfile.nanowin +++ b/src/Services/Catalog/Catalog.API/Dockerfile.nanowin @@ -1,6 +1,7 @@ FROM microsoft/dotnet:1.1-runtime-nanoserver ARG source WORKDIR /app +RUN set-itemproperty -path 'HKLM:\SYSTEM\CurrentControlSet\Services\Dnscache\Parameters' -Name ServerPriorityTimeLimit -Value 0 -Type DWord EXPOSE 80 COPY ${source:-obj/Docker/publish} . ENTRYPOINT ["dotnet", "Catalog.API.dll"] diff --git a/src/Services/Identity/Identity.API/Dockerfile.nanowin b/src/Services/Identity/Identity.API/Dockerfile.nanowin index 01f5eb8c5..b950d8334 100644 --- a/src/Services/Identity/Identity.API/Dockerfile.nanowin +++ b/src/Services/Identity/Identity.API/Dockerfile.nanowin @@ -1,6 +1,7 @@ FROM microsoft/dotnet:1.1-runtime-nanoserver ARG source WORKDIR /app +RUN set-itemproperty -path 'HKLM:\SYSTEM\CurrentControlSet\Services\Dnscache\Parameters' -Name ServerPriorityTimeLimit -Value 0 -Type DWord EXPOSE 80 COPY ${source:-obj/Docker/publish} . ENTRYPOINT ["dotnet", "Identity.API.dll"] diff --git a/src/Services/Ordering/Ordering.API/Dockerfile.nanowin b/src/Services/Ordering/Ordering.API/Dockerfile.nanowin index 85b1f46b4..eac299fc7 100644 --- a/src/Services/Ordering/Ordering.API/Dockerfile.nanowin +++ b/src/Services/Ordering/Ordering.API/Dockerfile.nanowin @@ -1,6 +1,7 @@ FROM microsoft/dotnet:1.1-runtime-nanoserver ARG source WORKDIR /app +RUN set-itemproperty -path 'HKLM:\SYSTEM\CurrentControlSet\Services\Dnscache\Parameters' -Name ServerPriorityTimeLimit -Value 0 -Type DWord EXPOSE 80 COPY ${source:-obj/Docker/publish} . ENTRYPOINT ["dotnet", "Ordering.API.dll"] diff --git a/src/Web/WebMVC/Dockerfile.nanowin b/src/Web/WebMVC/Dockerfile.nanowin index fe622e8de..302526330 100644 --- a/src/Web/WebMVC/Dockerfile.nanowin +++ b/src/Web/WebMVC/Dockerfile.nanowin @@ -1,6 +1,7 @@ FROM microsoft/dotnet:1.1-runtime-nanoserver ARG source WORKDIR /app +RUN set-itemproperty -path 'HKLM:\SYSTEM\CurrentControlSet\Services\Dnscache\Parameters' -Name ServerPriorityTimeLimit -Value 0 -Type DWord EXPOSE 80 COPY ${source:-obj/Docker/publish} . ENTRYPOINT ["dotnet", "WebMVC.dll"] diff --git a/src/Web/WebSPA/Dockerfile.nanowin b/src/Web/WebSPA/Dockerfile.nanowin index 8c784ca6e..5f9a48294 100644 --- a/src/Web/WebSPA/Dockerfile.nanowin +++ b/src/Web/WebSPA/Dockerfile.nanowin @@ -1,6 +1,7 @@ FROM microsoft/dotnet:1.1-runtime-nanoserver ARG source WORKDIR /app +RUN set-itemproperty -path 'HKLM:\SYSTEM\CurrentControlSet\Services\Dnscache\Parameters' -Name ServerPriorityTimeLimit -Value 0 -Type DWord EXPOSE 80 COPY ${source:-obj/Docker/publish} . ENTRYPOINT ["dotnet", "WebSPA.dll"]