|
@@ -330,6 +330,8 @@ public class ProjectService {
|
|
|
|
|
|
LinuxUtil.execute("docker import " + algorithmTarLinuxTempPath + " " + dockerImage);
|
|
|
algorithmMapper.updateDockerImportAndDockerImageById("1", dockerImage, algorithmId);
|
|
|
+ FileUtil.rm(algorithmTarLinuxTempPath);
|
|
|
+ log.info("ProjectService--handleAlgorithm 已删除算法临时文件:" + algorithmTarLinuxTempPath);
|
|
|
} else {
|
|
|
throw new RuntimeException("算法 " + algorithmId + " 的 mysql 数据有误!");
|
|
|
}
|
|
@@ -362,7 +364,15 @@ public class ProjectService {
|
|
|
String replace5 = replace4.replace("completions-number", completions + "");
|
|
|
String replace6 = replace5.replace("parallelism-number", parallelism + "");
|
|
|
String replace7 = replace6.replace("apiVers1on", "apiVersion");
|
|
|
- String finalYaml = replace7.replace("1atch/v1", "batch/v1");
|
|
|
+ String replace8 = replace7.replace("1atch/v1", "batch/v1");
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+ String finalYaml = replace8;
|
|
|
log.info("ProjectConsumer--parseManualProject 开始执行 yaml 文件" + finalYaml);
|
|
|
FileUtil.writeStringToLocalFile(finalYaml, jobTemplateYamlPathTarget);
|
|
|
|