提交 96c1c5a7 编写于 作者: ibizdev's avatar ibizdev

wwwwww 部署微服务接口

上级 4307aa59
...@@ -38,11 +38,11 @@ ...@@ -38,11 +38,11 @@
git clone -b master $para2 eam_practice04/ git clone -b master $para2 eam_practice04/
export NODE_OPTIONS=--max-old-space-size=4096 export NODE_OPTIONS=--max-old-space-size=4096
cd eam_practice04/ cd eam_practice04/
mvn clean package -Peamweb mvn clean package -Pwebapi
cd eam-app/eam-app-eamweb cd eam-provider/eam-provider-webapi
mvn -Peamweb docker:build mvn -Pwebapi docker:build
mvn -Peamweb docker:push mvn -Pwebapi docker:push
docker -H $para1 stack deploy --compose-file=src/main/docker/eam-app-eamweb.yaml iBizPractice --with-registry-auth docker -H $para1 stack deploy --compose-file=src/main/docker/eam-provider-webapi.yaml iBizPractice --with-registry-auth
</command> </command>
</hudson.tasks.Shell> </hudson.tasks.Shell>
</builders> </builders>
......
...@@ -9,6 +9,6 @@ CMD echo "The application will start in ${IBIZ_SLEEP}s..." && \ ...@@ -9,6 +9,6 @@ CMD echo "The application will start in ${IBIZ_SLEEP}s..." && \
sleep ${IBIZ_SLEEP} && \ sleep ${IBIZ_SLEEP} && \
java ${JAVA_OPTS} -Djava.security.egd=file:/dev/./urandom -jar /eam-app-eamweb.jar java ${JAVA_OPTS} -Djava.security.egd=file:/dev/./urandom -jar /eam-app-eamweb.jar
EXPOSE 30009 EXPOSE 8080
ADD eam-app-eamweb.jar /eam-app-eamweb.jar ADD eam-app-eamweb.jar /eam-app-eamweb.jar
...@@ -3,21 +3,9 @@ services: ...@@ -3,21 +3,9 @@ services:
eam-app-eamweb: eam-app-eamweb:
image: registry.cn-shanghai.aliyuncs.com/ibizsys/eam-app-eamweb:latest image: registry.cn-shanghai.aliyuncs.com/ibizsys/eam-app-eamweb:latest
ports: ports:
- "30009:30009" - "8080:8080"
networks: networks:
- agent_network - agent_network
environment:
- SPRING_CLOUD_NACOS_DISCOVERY_IP=practice.ibizlab.cn
- SERVER_PORT=30009
- SPRING_CLOUD_NACOS_DISCOVERY_SERVER-ADDR=172.16.102.211:8848
- SPRING_REDIS_HOST=172.16.100.243
- SPRING_REDIS_PORT=6379
- SPRING_REDIS_DATABASE=0
- SPRING_DATASOURCE_USERNAME=a_LAB01_30c03252a
- SPRING_DATASOURCE_PASSWORD=@7@dd7d0
- SPRING_DATASOURCE_URL=jdbc:mysql://172.16.186.185:3306/a_LAB01_30c03252a?autoReconnect=true&useUnicode=true&characterEncoding=UTF-8&useOldAliasMetadataBehavior=true
- SPRING_DATASOURCE_DRIVER-CLASS-NAME=com.mysql.jdbc.Driver
- SPRING_DATASOURCE_DEFAULTSCHEMA=a_LAB01_30c03252a
deploy: deploy:
mode: replicated mode: replicated
replicas: 1 replicas: 1
......
...@@ -9,6 +9,6 @@ CMD echo "The application will start in ${IBIZ_SLEEP}s..." && \ ...@@ -9,6 +9,6 @@ CMD echo "The application will start in ${IBIZ_SLEEP}s..." && \
sleep ${IBIZ_SLEEP} && \ sleep ${IBIZ_SLEEP} && \
java ${JAVA_OPTS} -Djava.security.egd=file:/dev/./urandom -jar /eam-provider-webapi.jar java ${JAVA_OPTS} -Djava.security.egd=file:/dev/./urandom -jar /eam-provider-webapi.jar
EXPOSE 8081 EXPOSE 20009
ADD eam-provider-webapi.jar /eam-provider-webapi.jar ADD eam-provider-webapi.jar /eam-provider-webapi.jar
...@@ -3,9 +3,21 @@ services: ...@@ -3,9 +3,21 @@ services:
eam-provider-webapi: eam-provider-webapi:
image: registry.cn-shanghai.aliyuncs.com/ibizsys/eam-provider-webapi:latest image: registry.cn-shanghai.aliyuncs.com/ibizsys/eam-provider-webapi:latest
ports: ports:
- "8081:8081" - "20009:20009"
networks: networks:
- agent_network - agent_network
environment:
- SPRING_CLOUD_NACOS_DISCOVERY_IP=practice.ibizlab.cn
- SERVER_PORT=20009
- SPRING_CLOUD_NACOS_DISCOVERY_SERVER-ADDR=172.16.102.211:8848
- SPRING_REDIS_HOST=172.16.100.243
- SPRING_REDIS_PORT=6379
- SPRING_REDIS_DATABASE=0
- SPRING_DATASOURCE_USERNAME=a_LAB01_30c03252a
- SPRING_DATASOURCE_PASSWORD=@7@dd7d0
- SPRING_DATASOURCE_URL=jdbc:mysql://172.16.186.185:3306/a_LAB01_30c03252a?autoReconnect=true&useUnicode=true&characterEncoding=UTF-8&useOldAliasMetadataBehavior=true
- SPRING_DATASOURCE_DRIVER-CLASS-NAME=com.mysql.jdbc.Driver
- SPRING_DATASOURCE_DEFAULTSCHEMA=a_LAB01_30c03252a
deploy: deploy:
mode: replicated mode: replicated
replicas: 1 replicas: 1
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册