Browse Source

Fix build error

feature/more-args
nicolas.dorier 6 years ago
parent
commit
7d2f588639
No known key found for this signature in database GPG Key ID: 6618763EF09186FE
  1. 25
      docker-compose-generator/src/DockerComposeDefinition.cs

25
docker-compose-generator/src/DockerComposeDefinition.cs

@ -56,26 +56,6 @@ namespace DockerGenerator
}
}
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>>();
@ -110,11 +90,6 @@ 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

Loading…
Cancel
Save