|
@@ -23,7 +23,7 @@ public class TestController {
|
|
@RequestMapping("/test")
|
|
@RequestMapping("/test")
|
|
public ResultData test(){
|
|
public ResultData test(){
|
|
//String cmd = "docker exec -d 3dtile /bin/bash -c '/mnt/fusion/3dtile.sh -f osgb -i /mnt/fusion/osgb/modelId_576/OSGB -o /mnt/fusion/b3dm/modelId_576/OSGB'";
|
|
//String cmd = "docker exec -d 3dtile /bin/bash -c '/mnt/fusion/3dtile.sh -f osgb -i /mnt/fusion/osgb/modelId_576/OSGB -o /mnt/fusion/b3dm/modelId_576/OSGB'";
|
|
- String cmd = "sudo docker run -i -t ubuntu /bin/bash -c '/mnt/fusion/3dtile.sh -f osgb -i /mnt/fusion/osgb/modelId_576/OSGB -o /mnt/fusion/b3dm/modelId_576/OSGB'";
|
|
|
|
|
|
+ String cmd = "sudo docker run --rm -v /mnt/fusion:/mnt/fusion 3dtile:v2 /mnt/fusion/3dtile.sh -f osgb -i /mnt/fusion/osgb/modelId_576/OSGB -o /mnt/fusion/b3dm/modelId_576/OSGB";
|
|
ShellUtil.execCmd(cmd);
|
|
ShellUtil.execCmd(cmd);
|
|
return ResultData.ok();
|
|
return ResultData.ok();
|
|
}
|
|
}
|