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

init

上级 d2caa93c
...@@ -31,7 +31,7 @@ TARGET=PSSYSTEM ...@@ -31,7 +31,7 @@ TARGET=PSSYSTEM
</#if> </#if>
<profiles> <profiles>
<profile> <profile>
<id><#if pub.getPSSysServiceAPI?? && pub.getPSSysServiceAPI()??>${pub.getPSSysServiceAPI().getCodeName()?lower_case}<#else>runtime</#if></id> <id>boot</id>
<build> <build>
<resources> <resources>
<resource> <resource>
......
...@@ -71,11 +71,11 @@ TARGET=PSSYSSERVICEAPI ...@@ -71,11 +71,11 @@ TARGET=PSSYSSERVICEAPI
</#if> </#if>
version: "3.2" version: "3.2"
services: services:
${pub.getCodeName()?lower_case}-provider: ${pub.getCodeName()?lower_case}-boot:
<#if dockerimage!=''> <#if dockerimage!=''>
image: ${dockerimage} image: ${dockerimage}
<#else> <#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> </#if>
ports: ports:
- "${httpPort}:${httpPort}" - "${httpPort}:${httpPort}"
......
...@@ -147,30 +147,30 @@ TARGET=PSSYSTEM ...@@ -147,30 +147,30 @@ TARGET=PSSYSTEM
cd ${pub.getCodeName()?lower_case}-boot 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 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> <#else>
mvn clean -P${pub.getPSSysServiceAPI().getCodeName()?lower_case} mvn clean -Pboot
cd ${pub.getCodeName()?lower_case}-boot cd ${pub.getCodeName()?lower_case}-boot
mvn ibizlabcli:code mvn ibizlabcli:code
cd .. cd ..
mvn package -P${pub.getPSSysServiceAPI().getCodeName()?lower_case} mvn package -Pboot
mvn install -P${pub.getPSSysServiceAPI().getCodeName()?lower_case} mvn install -Pboot
<#if pub.getPSDeployCenter().getCDType()?? && (pub.getPSDeployCenter().getCDType()=="SWARM") > <#if pub.getPSDeployCenter().getCDType()?? && (pub.getPSDeployCenter().getCDType()=="SWARM") >
cd ${pub.getCodeName()?lower_case}-boot cd ${pub.getCodeName()?lower_case}-boot
<#if depapi.getUserParam("multiplatform","")?? && depapi.getUserParam("multiplatform","")=="true"> <#if depapi.getUserParam("multiplatform","")?? && depapi.getUserParam("multiplatform","")=="true">
mvn -P${pub.getPSSysServiceAPI().getCodeName()?lower_case} exec:exec@prepare mvn -Pboot exec:exec@prepare
mvn -P${pub.getPSSysServiceAPI().getCodeName()?lower_case} exec:exec@buildpush mvn -Pboot exec:exec@buildpush
<#else> <#else>
mvn -P${pub.getPSSysServiceAPI().getCodeName()?lower_case} docker:build mvn -Pboot docker:build
mvn -P${pub.getPSSysServiceAPI().getCodeName()?lower_case} docker:push mvn -Pboot docker:push
</#if> </#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 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") > <#elseif pub.getPSDeployCenter().getCDType()?? && (pub.getPSDeployCenter().getCDType()=="K8S") >
cd ${pub.getCodeName()?lower_case}-boot cd ${pub.getCodeName()?lower_case}-boot
<#if depapi.getUserParam("multiplatform","")?? && depapi.getUserParam("multiplatform","")=="true"> <#if depapi.getUserParam("multiplatform","")?? && depapi.getUserParam("multiplatform","")=="true">
mvn -P${pub.getPSSysServiceAPI().getCodeName()?lower_case} exec:exec@prepare mvn -Pboot exec:exec@prepare
mvn -P${pub.getPSSysServiceAPI().getCodeName()?lower_case} exec:exec@buildpush mvn -Pboot exec:exec@buildpush
<#else> <#else>
mvn -P${pub.getPSSysServiceAPI().getCodeName()?lower_case} docker:build mvn -Pboot docker:build
mvn -P${pub.getPSSysServiceAPI().getCodeName()?lower_case} docker:push mvn -Pboot docker:push
</#if> </#if>
set +e 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} 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 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册