Updating docker file to not include ports. Added scripts folder and script to run docker with env vars passed via command line. Also now the build and packaging is happening in container
This commit is contained in:
parent
60efbc0f9e
commit
3262ff82b0
9 changed files with 123 additions and 7 deletions
|
@ -85,7 +85,7 @@ namespace cartservice
|
|||
int port = options.Port;
|
||||
if (options.Port <= 0)
|
||||
{
|
||||
Console.WriteLine($"Reading cart service port from {CART_SERVICE_ADDRESS} environment variable");
|
||||
Console.WriteLine($"Reading cart service port from {CART_SERVICE_PORT} environment variable");
|
||||
string portStr = Environment.GetEnvironmentVariable(CART_SERVICE_PORT);
|
||||
if (string.IsNullOrEmpty(portStr))
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue