From e595b19e61f972711a9b9fd1059267820d4852b2 Mon Sep 17 00:00:00 2001 From: 11353 <1135361399@qq.com> Date: Fri, 1 Apr 2022 22:33:19 +0800 Subject: [PATCH] =?UTF-8?q?fix:docker=E6=89=93=E5=8D=B0=E6=8F=92=E4=BB=B6?= =?UTF-8?q?=E6=88=90=E5=8A=9F=E4=B8=8A=E4=BC=A0=E9=98=BF=E9=87=8C=E4=BA=91?= =?UTF-8?q?=E5=BE=85=E6=B5=8B=E8=AF=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pom.xml | 32 +++---------------- ruoyi-auth/pom.xml | 73 +++++-------------------------------------- ruoyi-gateway/pom.xml | 50 +++++++++++++++++++++++++++++ 3 files changed, 61 insertions(+), 94 deletions(-) diff --git a/pom.xml b/pom.xml index 3dab0a6b..0012779d 100644 --- a/pom.xml +++ b/pom.xml @@ -46,11 +46,13 @@ 2.12.2 1.4.13 3.10.1 + 3.2.0 registry.cn-guangzhou.aliyuncs.com ry_base ry + registry.cn-guangzhou.aliyuncs.com/ry_base/base:openJdk-8u322-jre @@ -312,36 +314,9 @@ com.google.cloud.tools jib-maven-plugin - 3.2.0 + ${google.jib.version} - - - com.spotify - dockerfile-maven-plugin - ${dockerfile.maven.plugin.version} - - - default - - - - push - - - - - sino-tech-admin - Fros_1234 - 175.178.38.240:8076/${artifactId} - ${project.version} - - - target/${project.build.finalName}.jar - - - - org.apache.maven.plugins maven-compiler-plugin @@ -354,6 +329,7 @@ + local diff --git a/ruoyi-auth/pom.xml b/ruoyi-auth/pom.xml index 536cb1ec..78033b58 100644 --- a/ruoyi-auth/pom.xml +++ b/ruoyi-auth/pom.xml @@ -76,24 +76,22 @@ - registry.cn-guangzhou.aliyuncs.com/ry_base/base/openjdk:8u322-jre + ${docker.base.jre} ${docker.registry}/${docker.space}/${docker.warehouse} - - ${artifactId} - - ${project.version} + + ${artifactId}-${version} - -Xms1g - -Xmx1g + -Xms512m + -Xmx512m @@ -103,7 +101,7 @@ USE_CURRENT_TIMESTAMP - com.bpo.BpoSignAppllication + com.ruoyi.auth.RuoYiAuthApplication Asia/Shanghai @@ -115,70 +113,13 @@ - install + package ${jib.key} - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/ruoyi-gateway/pom.xml b/ruoyi-gateway/pom.xml index fc1d58c4..4eac55ec 100644 --- a/ruoyi-gateway/pom.xml +++ b/ruoyi-gateway/pom.xml @@ -87,6 +87,56 @@ ${project.artifactId} + + com.google.cloud.tools + jib-maven-plugin + + + + ${docker.base.jre} + + + + ${docker.registry}/${docker.space}/${docker.warehouse} + + + ${artifactId}-${version} + + + + + + + -Xms512m + -Xmx512m + + + + 12080 + + + + USE_CURRENT_TIMESTAMP + + com.ruoyi.gateway.RuoYiGatewayApplication + + + Asia/Shanghai + + + true + + + + + + package + + ${jib.key} + + + + org.springframework.boot spring-boot-maven-plugin