mirror of
https://github.com/aljazceru/btcpayserver-docker.git
synced 2025-12-18 03:04:20 +01:00
bump litecoin
This commit is contained in:
@@ -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: |
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user