提交 214ea2b4 编写于 作者: sq3536's avatar sq3536

init

上级 d2caa93c
......@@ -31,7 +31,7 @@ TARGET=PSSYSTEM
</#if>
<profiles>
<profile>
<id><#if pub.getPSSysServiceAPI?? && pub.getPSSysServiceAPI()??>${pub.getPSSysServiceAPI().getCodeName()?lower_case}<#else>runtime</#if></id>
<id>boot</id>
<build>
<resources>
<resource>
......
......@@ -71,11 +71,11 @@ TARGET=PSSYSSERVICEAPI
</#if>
version: "3.2"
services:
${pub.getCodeName()?lower_case}-provider:
${pub.getCodeName()?lower_case}-boot:
<#if dockerimage!=''>
image: ${dockerimage}
<#else>
image: registry.cn-shanghai.aliyuncs.com/ibizsys/${pub.getCodeName()?lower_case}-provider:latest
image: registry.cn-shanghai.aliyuncs.com/ibizsys/${pub.getCodeName()?lower_case}-boot:latest
</#if>
ports:
- "${httpPort}:${httpPort}"
......
......@@ -147,30 +147,30 @@ TARGET=PSSYSTEM
cd ${pub.getCodeName()?lower_case}-boot
docker -H $para1 stack deploy --compose-file=src/main/docker/${pub.getCodeName()?lower_case}-boot-${pub.getPSSysServiceAPI().getCodeName()?lower_case}.yaml ${depplatform.getName()} --with-registry-auth
<#else>
mvn clean -P${pub.getPSSysServiceAPI().getCodeName()?lower_case}
mvn clean -Pboot
cd ${pub.getCodeName()?lower_case}-boot
mvn ibizlabcli:code
cd ..
mvn package -P${pub.getPSSysServiceAPI().getCodeName()?lower_case}
mvn install -P${pub.getPSSysServiceAPI().getCodeName()?lower_case}
mvn package -Pboot
mvn install -Pboot
<#if pub.getPSDeployCenter().getCDType()?? && (pub.getPSDeployCenter().getCDType()=="SWARM") >
cd ${pub.getCodeName()?lower_case}-boot
<#if depapi.getUserParam("multiplatform","")?? && depapi.getUserParam("multiplatform","")=="true">
mvn -P${pub.getPSSysServiceAPI().getCodeName()?lower_case} exec:exec@prepare
mvn -P${pub.getPSSysServiceAPI().getCodeName()?lower_case} exec:exec@buildpush
mvn -Pboot exec:exec@prepare
mvn -Pboot exec:exec@buildpush
<#else>
mvn -P${pub.getPSSysServiceAPI().getCodeName()?lower_case} docker:build
mvn -P${pub.getPSSysServiceAPI().getCodeName()?lower_case} docker:push
mvn -Pboot docker:build
mvn -Pboot docker:push
</#if>
docker -H $para1 stack deploy --compose-file=src/main/docker/${pub.getCodeName()?lower_case}-boot-${pub.getPSSysServiceAPI().getCodeName()?lower_case}.yaml ${depplatform.getName()} --with-registry-auth
<#elseif pub.getPSDeployCenter().getCDType()?? && (pub.getPSDeployCenter().getCDType()=="K8S") >
cd ${pub.getCodeName()?lower_case}-boot
<#if depapi.getUserParam("multiplatform","")?? && depapi.getUserParam("multiplatform","")=="true">
mvn -P${pub.getPSSysServiceAPI().getCodeName()?lower_case} exec:exec@prepare
mvn -P${pub.getPSSysServiceAPI().getCodeName()?lower_case} exec:exec@buildpush
mvn -Pboot exec:exec@prepare
mvn -Pboot exec:exec@buildpush
<#else>
mvn -P${pub.getPSSysServiceAPI().getCodeName()?lower_case} docker:build
mvn -P${pub.getPSSysServiceAPI().getCodeName()?lower_case} docker:push
mvn -Pboot docker:build
mvn -Pboot docker:push
</#if>
set +e
kubectl --kubeconfig ~/shanghai-demo-01 delete -f src/main/docker/${pub.getCodeName()?lower_case}-boot-${pub.getPSSysServiceAPI().getCodeName()?lower_case}-k8s.yaml -n ${depplatform.getName()?lower_case}
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册