1
0

Add Zcash support (#995)

* add zcash fragment with definition

* fix zcash port number

* fix zec db data and add zec lightwalletd fullnode opt

* fix zec lightwalletd zcash.conf error

* remove LWD_URL for main zec fragment

* set zcash docker image to latest

* revert zcash-walletd to 0.0.2

* move zec lwd_url back to zecrocks

* add zcash-fullnode exclusive fragment

* add fragment configs support

* fix compose generator configs

---------

Co-authored-by: macintoshhelper <6757532+macintoshhelper@users.noreply.github.com>
This commit is contained in:
macintoshhelper
2025-07-01 04:15:52 +02:00
committed by GitHub
parent c2dad64194
commit e38ede5eef
5 changed files with 135 additions and 0 deletions

View File

@@ -142,6 +142,7 @@ namespace DockerGenerator
var services = new List<KeyValuePair<YamlNode, YamlNode>>();
var volumes = new List<KeyValuePair<YamlNode, YamlNode>>();
var configs = new List<KeyValuePair<YamlNode, YamlNode>>();
var networks = new List<KeyValuePair<YamlNode, YamlNode>>();
foreach (var o in processedFragments.Select(f => (f, ParseDocument(f))).ToList())
{
@@ -155,6 +156,10 @@ namespace DockerGenerator
{
volumes.AddRange(fragmentVolumesRoot.Children);
}
if (doc.Children.ContainsKey("configs") && doc.Children["configs"] is YamlMappingNode fragmentConfigsRoot)
{
configs.AddRange(fragmentConfigsRoot.Children);
}
if (doc.Children.ContainsKey("networks") && doc.Children["networks"] is YamlMappingNode fragmentNetworksRoot)
{
networks.AddRange(fragmentNetworksRoot.Children);
@@ -165,6 +170,7 @@ namespace DockerGenerator
output.Add("version", new YamlScalarNode("3") { Style = YamlDotNet.Core.ScalarStyle.DoubleQuoted });
output.Add("services", new YamlMappingNode(Merge(services)));
output.Add("volumes", new YamlMappingNode(volumes));
output.Add("configs", new YamlMappingNode(configs));
output.Add("networks", new YamlMappingNode(networks));
PostProcess(output);