|
@@ -111,6 +111,12 @@ public class DockerExe {
|
|
.withTarget("/cephfs/mdo/")
|
|
.withTarget("/cephfs/mdo/")
|
|
.withReadOnly(false);
|
|
.withReadOnly(false);
|
|
|
|
|
|
|
|
+ Mount sitePackages = new Mount()
|
|
|
|
+ .withType(MountType.BIND)
|
|
|
|
+ .withSource("/home/xgd/site-packages/")
|
|
|
|
+ .withTarget("/opt/miniconda3/envs/surromdao/lib/python3.10/site-packages/")
|
|
|
|
+ .withReadOnly(false);
|
|
|
|
+
|
|
Mount outMount = new Mount()
|
|
Mount outMount = new Mount()
|
|
.withType(MountType.BIND)
|
|
.withType(MountType.BIND)
|
|
.withSource("/cephfs/mdo/"+pid +"/out/")
|
|
.withSource("/cephfs/mdo/"+pid +"/out/")
|
|
@@ -124,6 +130,7 @@ public class DockerExe {
|
|
.withReadOnly(false);
|
|
.withReadOnly(false);
|
|
List<Mount> am =new ArrayList<>();
|
|
List<Mount> am =new ArrayList<>();
|
|
am.add(cephfsVMount);
|
|
am.add(cephfsVMount);
|
|
|
|
+ am.add(sitePackages);
|
|
am.add(outMount);
|
|
am.add(outMount);
|
|
am.add(runMount);
|
|
am.add(runMount);
|
|
//创建容器
|
|
//创建容器
|