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

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

上级 bd390a79
......@@ -60,8 +60,12 @@ 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 sysrun.getRunMode() == "STARTMSAPP">
<#if depapp.getUserParam("multiplatform","")?? && depapp.getUserParam("multiplatform","")=="true">
mvn clean install -P${pub.getPSApplication().getPKGCodeName()?lower_case}
<#else>
mvn clean package -P${pub.getPSApplication().getPKGCodeName()?lower_case}
</#if>
<#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">
......@@ -95,7 +99,11 @@ 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>
<#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 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册