提交 f1102e97 编写于 作者: yanshaowei's avatar yanshaowei

docker镜像支持多平台(linux/amd64,linux/arm64)

上级 f2bced79
......@@ -60,12 +60,9 @@ TARGET=PSSYSTEM
git clone -b ${branch} $para2 ${sys.codeName?lower_case}/
export NODE_OPTIONS=--max-old-space-size=4096
cd ${sys.codeName?lower_case}/
<#if sysrun.getRunMode() == "STARTMSAPP">
<#if depapp.getUserParam("multiplatform","")?? && depapp.getUserParam("multiplatform","")=="true">
mvn clean install -P${pub.getPSApplication().getPKGCodeName()?lower_case}
<#else>
<#if sysrun.getRunMode() == "STARTMSAPP">
mvn clean package -P${pub.getPSApplication().getPKGCodeName()?lower_case}
</#if>
mvn install -P${pub.getPSApplication().getPKGCodeName()?lower_case}
<#if pub.getPSDeployCenter().getCDType()?? && (pub.getPSDeployCenter().getCDType()=="SWARM") >
cd ${pub.getCodeName()?lower_case}-app/${pub.getCodeName()?lower_case}-app-${pub.getPSApplication().getPKGCodeName()?lower_case}
<#if depapp.getUserParam("multiplatform","")?? && depapp.getUserParam("multiplatform","")=="true">
......@@ -99,11 +96,8 @@ TARGET=PSSYSTEM
</#if>
</#if>
<#if sysrun.getRunMode() == "STARTMSAPI">
<#if depapi.getUserParam("multiplatform","")?? && depapi.getUserParam("multiplatform","")=="true">
mvn clean install -P${pub.getPSSysServiceAPI().getCodeName()?lower_case}
<#else>
mvn clean package -P${pub.getPSSysServiceAPI().getCodeName()?lower_case}
</#if>
mvn install -P${pub.getPSSysServiceAPI().getCodeName()?lower_case}
<#if pub.getPSDeployCenter().getCDType()?? && (pub.getPSDeployCenter().getCDType()=="SWARM") >
cd ${pub.getCodeName()?lower_case}-provider/${pub.getCodeName()?lower_case}-provider-${pub.getPSSysServiceAPI().getCodeName()?lower_case}
<#if depapi.getUserParam("multiplatform","")?? && depapi.getUserParam("multiplatform","")=="true">
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册