|
@@ -103,7 +103,8 @@ public class KubeSphereAlgorithmController {
|
|
String DockerfileShell = "FROM "+harborUrl+"/library/python3_base:v1.0\n" +
|
|
String DockerfileShell = "FROM "+harborUrl+"/library/python3_base:v1.0\n" +
|
|
"ENV CONFIG /\n" +
|
|
"ENV CONFIG /\n" +
|
|
"COPY ./" + "%s" + " $CONFIG\n" +
|
|
"COPY ./" + "%s" + " $CONFIG\n" +
|
|
- "CMD [\"python\", \"" + "%s" + "\"]";
|
|
|
|
|
|
+ "ENTRYPOINT [\"python\",\"-u\", \"" + "%s" + "\"]";
|
|
|
|
+ //"ENTRYPOINT [\"nohup\","+"\"python\", \"" + "%s" + "\"]";
|
|
//String[] shellArgs = {modelName, algorithmName, modelName};
|
|
//String[] shellArgs = {modelName, algorithmName, modelName};
|
|
String[] shellArgs = {modelName, appFile, modelName};
|
|
String[] shellArgs = {modelName, appFile, modelName};
|
|
String DockerfilePath = tempFileLocation+"/Dockerfile";
|
|
String DockerfilePath = tempFileLocation+"/Dockerfile";
|
|
@@ -206,7 +207,7 @@ public class KubeSphereAlgorithmController {
|
|
String appDockerfileShell="FROM "+harborUrl+"/library/python3_base:v1.0\n" +
|
|
String appDockerfileShell="FROM "+harborUrl+"/library/python3_base:v1.0\n" +
|
|
"ENV CONFIG /\n" +
|
|
"ENV CONFIG /\n" +
|
|
"COPY ./" + "%s" + " $CONFIG\n" +
|
|
"COPY ./" + "%s" + " $CONFIG\n" +
|
|
- "CMD [\"python\", \"" + "%s" + "\"]";
|
|
|
|
|
|
+ "ENTRYPOINT [\"python\",\"-u\", \"" + "%s" + "\"]";
|
|
String[] appShellArgs = {modelName, appFile, modelName};
|
|
String[] appShellArgs = {modelName, appFile, modelName};
|
|
String appDockerfilePath=tempFileLocation+"/appDockerfile";
|
|
String appDockerfilePath=tempFileLocation+"/appDockerfile";
|
|
JavaShellUtil.generate(appDockerfileShell, appShellArgs, appDockerfilePath);
|
|
JavaShellUtil.generate(appDockerfileShell, appShellArgs, appDockerfilePath);
|