|
@@ -124,11 +124,11 @@ public class DockerExe {
|
|
|
.withHostConfig(
|
|
|
HostConfig.newHostConfig()
|
|
|
.withMounts(am)
|
|
|
- ).withCmd("bash", "-c", "cd /home/aircraft/project " +
|
|
|
+ ).withCmd("bash", "-c", "cd /cephfs/ac/"+pid+"/"+type +
|
|
|
"&& export PYTHONPATH=$PYTHONPATH:/home/aircraft/Soad_Project " +
|
|
|
"&& source ~/miniconda3/etc/profile.d/conda.sh " +
|
|
|
"&& conda activate " +
|
|
|
- "&& python test.py gui.xml /cephfs/ac/"+pid+"/"+type+
|
|
|
+ "&& python /home/aircraft/project/test.py gui.xml /cephfs/ac/"+pid+"/"+type+
|
|
|
" && conda deactivate")
|
|
|
.exec();
|
|
|
dockerClient.startContainerCmd(container.getId()).exec();
|