|
@@ -363,6 +363,7 @@ public class ProjectService {
|
|
|
}
|
|
|
algorithmMapper.updateDockerImportAndDockerImageById("1", dockerImage, algorithmId);
|
|
|
LinuxUtil.execute("docker import " + algorithmTarLinuxTempPath + " " + dockerImage);
|
|
|
+ LinuxUtil.execute("docker push " + dockerImage);
|
|
|
FileUtil.rm(algorithmTarLinuxTempPath);
|
|
|
log.info("ProjectService--handleAlgorithm 已删除算法临时文件:" + algorithmTarLinuxTempPath);
|
|
|
} else {
|
|
@@ -388,6 +389,7 @@ public class ProjectService {
|
|
|
FileUtil.writeInputStreamToLocalFile(inputStream, algorithmTarLinuxTempPath);
|
|
|
// 本地执行 docker import 算法文件成镜像(可改成用 docker-java 操作仓库)
|
|
|
LinuxUtil.execute("docker import " + algorithmTarLinuxTempPath + " " + dockerImage);
|
|
|
+ LinuxUtil.execute("docker push " + dockerImage);
|
|
|
FileUtil.rm(algorithmTarLinuxTempPath);
|
|
|
log.info("ProjectService--handleAlgorithm 已删除算法临时文件:" + algorithmTarLinuxTempPath);
|
|
|
}
|