You are giving me an example of communicating between Sonarr and SabNZBD but Im saying does it make any difference when using SongKong to move the files, if there is only one container involved ?
There is very little docker code in the code, there is a method for working out if using docker
public static boolean isDocker()
{
if(!isDockerChecked)
{
isDockerChecked = true;
//New method
if (Strings.nullToEmpty(System.getProperties().getProperty("docker")).contains("true"))
{
isDocker = true;
return true;
}
//Old method
try
{
Path procTable = Paths.get("/proc/1/cgroup");
if (Files.exists(procTable))
{
Boolean isInDocker = Files.lines(procTable).anyMatch(line -> line.contains("docker"));
if (isInDocker)
{
isDocker = true;
return true;
}
}
}
catch (IOException ioe)
{
return false;
}
return false;
}
else
{
return isDocker;
}
}
and if we are on docker then we root the web-browser tree at /music which has hopefully been configured so its give access to your music folder.
if(SongKong.songKong.config.isDocker())
{
List<Path> paths = new ArrayList<Path>();
paths.add(Paths.get(/music));
RemoteUICreateFolderTree cft = new RemoteUICreateFolderTree(paths, true, startFolder);
String treeData = cft.start(1);
return treeData;
}
Now you say:
I don’t see how I would know what the mounted folders are, I assume there must be some api but its not clear.