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

demoadmin 部署微服务应用

上级 feaca62f
...@@ -38,11 +38,11 @@ ...@@ -38,11 +38,11 @@
git clone -b master $para2 eam_practice01/ git clone -b master $para2 eam_practice01/
export NODE_OPTIONS=--max-old-space-size=4096 export NODE_OPTIONS=--max-old-space-size=4096
cd eam_practice01/ cd eam_practice01/
mvn clean package -Pwebapi mvn clean package -Peamweb
cd eam-provider/eam-provider-webapi cd eam-app/eam-app-eamweb
mvn -Pwebapi docker:build mvn -Peamweb docker:build
mvn -Pwebapi docker:push mvn -Peamweb docker:push
docker -H $para1 stack deploy --compose-file=src/main/docker/eam-provider-webapi.yaml iBizPractice --with-registry-auth docker -H $para1 stack deploy --compose-file=src/main/docker/eam-app-eamweb.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 ${IBZ_SLEEP}s..." && \ ...@@ -9,6 +9,6 @@ CMD echo "The application will start in ${IBZ_SLEEP}s..." && \
sleep ${IBZ_SLEEP} && \ sleep ${IBZ_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 8080 EXPOSE 30006
ADD eam-app-eamweb.jar /eam-app-eamweb.jar ADD eam-app-eamweb.jar /eam-app-eamweb.jar
...@@ -3,9 +3,21 @@ services: ...@@ -3,9 +3,21 @@ 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:
- "8080:8080" - "30006:30006"
networks: networks:
- agent_network - agent_network
environment:
- SPRING_CLOUD_NACOS_DISCOVERY_IP=practice.ibizlab.cn
- SERVER_PORT=30006
- 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 ${IBZ_SLEEP}s..." && \ ...@@ -9,6 +9,6 @@ CMD echo "The application will start in ${IBZ_SLEEP}s..." && \
sleep ${IBZ_SLEEP} && \ sleep ${IBZ_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 20006 EXPOSE 8081
ADD eam-provider-webapi.jar /eam-provider-webapi.jar ADD eam-provider-webapi.jar /eam-provider-webapi.jar
...@@ -3,21 +3,9 @@ services: ...@@ -3,21 +3,9 @@ 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:
- "20006:20006" - "8081:8081"
networks: networks:
- agent_network - agent_network
environment:
- SPRING_CLOUD_NACOS_DISCOVERY_IP=practice.ibizlab.cn
- SERVER_PORT=20006
- 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 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册