bump litecoin

This commit is contained in:
nicolas.dorier
2019-05-23 12:05:24 +09:00
parent bf66b9cb8c
commit 44be7b8c31
6 changed files with 42 additions and 13 deletions

View File

@@ -4,7 +4,7 @@ services:
litecoind:
restart: unless-stopped
container_name: btcpayserver_litecoind
image: btcpayserver/litecoin:0.17.1
image: btcpayserver/litecoin:0.17.1-1
environment:
BITCOIN_NETWORK: ${NBITCOIN_NETWORK:-regtest}
BITCOIN_EXTRA_ARGS: |

View File

@@ -10,13 +10,13 @@ namespace DockerGenerator
{
public class DockerComposeDefinition
{
public List<string> Fragments
public HashSet<string> Fragments
{
get; set;
}
private string _Name;
public DockerComposeDefinition(string name, List<string> fragments)
public DockerComposeDefinition(string name, HashSet<string> fragments)
{
Fragments = fragments;
_Name = name;
@@ -55,6 +55,27 @@ namespace DockerGenerator
Console.WriteLine($"\t{fragment}");
}
}
var deps = new HashSet<string>();
foreach (var doc in Fragments.Select(f => ParseDocument(f)))
{
GetDeps(deps, doc);
}
foreach (var fragment in deps.Where(d => Fragments.Add(d)))
{
var fragmentPath = GetFragmentLocation(fragment);
if (!File.Exists(fragmentPath))
{
Console.WriteLine($"\t{fragment} not found in {fragmentPath}, ignoring...");
Fragments.Remove(fragment);
}
else
{
Console.WriteLine($"\t{fragment}");
}
}
var services = new List<KeyValuePair<YamlNode, YamlNode>>();
var volumes = new List<KeyValuePair<YamlNode, YamlNode>>();
var networks = new List<KeyValuePair<YamlNode, YamlNode>>();
@@ -89,6 +110,11 @@ namespace DockerGenerator
Console.WriteLine();
}
private void GetDeps(HashSet<string> deps, YamlMappingNode doc)
{
throw new NotImplementedException();
}
private KeyValuePair<YamlNode, YamlNode>[] Merge(List<KeyValuePair<YamlNode, YamlNode>> services)
{
return services

View File

@@ -73,7 +73,7 @@ namespace DockerGenerator
fragments.Add(fragment.Trim());
}
fragments = fragments.Where(s => !composition.ExcludeFragments.Contains(s)).ToHashSet();
var def = new DockerComposeDefinition(name, fragments.ToList());
var def = new DockerComposeDefinition(name, fragments);
def.FragmentLocation = fragmentLocation;
def.BuildOutputDirectory = output;
def.Build();