add build scripts for custom docker-compose

This commit is contained in:
nicolas.dorier
2018-05-17 01:31:36 +09:00
parent 446b3db93a
commit e2b82697a0
9 changed files with 94 additions and 3 deletions

View File

@@ -30,7 +30,7 @@ namespace DockerGenerator
{
var selectedCrypto = Environment.GetEnvironmentVariable("BTCPAYGEN_CRYPTO" + i);
if(string.IsNullOrEmpty(selectedCrypto))
break;
continue;
composition.SelectedCryptos.Add(selectedCrypto.ToLowerInvariant());
}
composition.SelectedProxy = (Environment.GetEnvironmentVariable("BTCPAYGEN_REVERSEPROXY") ?? "").ToLowerInvariant();

View File

@@ -52,7 +52,11 @@ namespace DockerGenerator
Console.WriteLine("Crypto: " + string.Join(", ", composition.SelectedCryptos.ToArray()));
Console.WriteLine("Lightning: " + composition.SelectedLN);
Console.WriteLine("ReverseProxy: " + composition.SelectedProxy);
new Program().Run(composition, "generated", root);
var generatedLocation = Path.GetFullPath(Path.Combine(root, "Generated"));
var name = Environment.GetEnvironmentVariable("BTCPAYGEN_SUBNAME");
name = string.IsNullOrEmpty(name) ? "generated" : name;
new Program().Run(composition, name, generatedLocation);
}
}