Use volumes to share sshkey and authorized keys instead of copying and add build time variables to docker-compose
This commit is contained in:
@@ -87,7 +87,7 @@ namespace DockerGenerator
|
||||
output.Add("services", new YamlMappingNode(Merge(services)));
|
||||
output.Add("volumes", new YamlMappingNode(volumes));
|
||||
output.Add("networks", new YamlMappingNode(networks));
|
||||
|
||||
PostProcess(output);
|
||||
|
||||
var dockerImages = ((YamlMappingNode)output["services"]).Children.Select(kv => kv.Value["image"].ToString()).ToList();
|
||||
dockerImages.Add("btcpayserver/docker-compose-builder:1.24.1");
|
||||
@@ -119,6 +119,11 @@ namespace DockerGenerator
|
||||
Console.WriteLine();
|
||||
}
|
||||
|
||||
private void PostProcess(YamlMappingNode output)
|
||||
{
|
||||
new BuildTimeVariableVisitor().Visit(output);
|
||||
}
|
||||
|
||||
private KeyValuePair<YamlNode, YamlNode>[] Merge(List<KeyValuePair<YamlNode, YamlNode>> services)
|
||||
{
|
||||
return services
|
||||
|
||||
Reference in New Issue
Block a user