mirror of
https://github.com/aljazceru/btcpayserver-docker.git
synced 2025-12-20 11:04:22 +01:00
Introduce Exclude Fragments option
Allows you to exclude any fragments that get added. Good use case: do not deploy litecoin lightning node when using btc lightning Should also help users with advanced customization scenarios
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
using System;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.IO;
|
||||
using System.Linq;
|
||||
@@ -72,6 +72,7 @@ namespace DockerGenerator
|
||||
{
|
||||
fragments.Add(fragment.Trim());
|
||||
}
|
||||
fragments = fragments.Where(s => !composition.ExcludeFragments.Contains(s)).ToHashSet();
|
||||
var def = new DockerComposeDefinition(name, fragments.ToList());
|
||||
def.FragmentLocation = fragmentLocation;
|
||||
def.BuildOutputDirectory = output;
|
||||
|
||||
Reference in New Issue
Block a user