Browse Source

优化取消代理

dev-active_learn
chenzhihang 9 months ago
parent
commit
f042fa52ba
1 changed files with 2 additions and 4 deletions
  1. +2
    -4
      ruoyi-modules/management-platform/src/main/java/com/ruoyi/platform/service/impl/ImageServiceImpl.java

+ 2
- 4
ruoyi-modules/management-platform/src/main/java/com/ruoyi/platform/service/impl/ImageServiceImpl.java View File

@@ -88,8 +88,6 @@ public class ImageServiceImpl implements ImageService {
private String image;
@Value("${dockerpush.mountPath}")
private String mountPath;
@Value("${dockerpush.proxyUrl}")
private String proxyUrl;
@Value("${jupyter.namespace}")
private String namespace;

@@ -324,7 +322,7 @@ public class ImageServiceImpl implements ImageService {
V1Pod pod = k8sClientUtil.getNSPodList(serviceNS, deploymentName);
if (pod == null) {
String podName = deploymentName + "-" + DateUtils.formatYMD10(new Date());
pod = k8sClientUtil.createPodWithEnv(podName, serviceNS, proxyUrl, mountPath, image);
pod = k8sClientUtil.createPodWithEnv(podName, serviceNS, mountPath, image);
}
String loginCmd = "docker login -u " + harborUser + " -p " + harborpassword + " " + harborUrl;
// 执行命令 docker login -u admin -p Harbor12345 172.20.32.187
@@ -367,7 +365,7 @@ public class ImageServiceImpl implements ImageService {
V1Pod pod = k8sClientUtil.getNSPodList(serviceNS, deploymentName);
if (pod == null) {
String podName = deploymentName + "-" + DateUtils.formatYMD10(new Date());
pod = k8sClientUtil.createPodWithEnv(podName, serviceNS, proxyUrl, mountPath, image);
pod = k8sClientUtil.createPodWithEnv(podName, serviceNS, mountPath, image);
}
String loginCmd = "docker login -u " + harborUser + " -p " + harborpassword + " " + harborUrl;
// 执行命令 docker login -u admin -p Harbor12345 172.20.32.187


Loading…
Cancel
Save