Browse Source

Fix typo in proxyContainer (#781)

* Fix typo in proxyContainer

* Fix typo in proxyContainer
pull/788/head
Stephen Brown 6 years ago
committed by GitHub
parent
commit
e51393b38d
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 12
      src/Microsoft.Tye.Hosting/DockerRunner.cs

12
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;

Loading…
Cancel
Save