From e51393b38da68f0de76fb78f6bfcf7470e388010 Mon Sep 17 00:00:00 2001 From: Stephen Brown Date: Fri, 13 Nov 2020 17:50:29 +0100 Subject: [PATCH] Fix typo in proxyContainer (#781) * Fix typo in proxyContainer * Fix typo in proxyContainer --- src/Microsoft.Tye.Hosting/DockerRunner.cs | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/Microsoft.Tye.Hosting/DockerRunner.cs b/src/Microsoft.Tye.Hosting/DockerRunner.cs index ef4bc378..370d7764 100644 --- a/src/Microsoft.Tye.Hosting/DockerRunner.cs +++ b/src/Microsoft.Tye.Hosting/DockerRunner.cs @@ -62,15 +62,15 @@ namespace Microsoft.Tye.Hosting // Inject a proxy per non-container service. This allows the container to use normal host names within the // container network to talk to services on the host - var proxyContanier = new DockerRunInfo($"mcr.microsoft.com/dotnet/core/sdk:3.1", "dotnet Microsoft.Tye.Proxy.dll") + var proxyContainer = new DockerRunInfo($"mcr.microsoft.com/dotnet/core/sdk:3.1", "dotnet Microsoft.Tye.Proxy.dll") { WorkingDirectory = "/app", NetworkAlias = service.Description.Name, Private = true }; var proxyLocation = Path.GetDirectoryName(typeof(Microsoft.Tye.Proxy.Program).Assembly.Location); - proxyContanier.VolumeMappings.Add(new DockerVolume(proxyLocation, name: null, target: "/app")); - var proxyDescription = new ServiceDescription($"{service.Description.Name}-proxy", proxyContanier); + proxyContainer.VolumeMappings.Add(new DockerVolume(proxyLocation, name: null, target: "/app")); + var proxyDescription = new ServiceDescription($"{service.Description.Name}-proxy", proxyContainer); foreach (var binding in service.Description.Bindings) { if (binding.Port == null) @@ -90,9 +90,9 @@ namespace Microsoft.Tye.Hosting b.ReplicaPorts.Add(b.Port.Value); proxyDescription.Bindings.Add(b); } - var proxyContanierService = new Service(proxyDescription); - containers.Add(proxyContanierService); - proxies.Add(proxyContanierService); + var proxyContainerService = new Service(proxyDescription); + containers.Add(proxyContainerService); + proxies.Add(proxyContainerService); } string? dockerNetwork = null;