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

wwwwww 部署微服务应用

上级 a001bdf7
......@@ -38,11 +38,11 @@
git clone -b master $para2 eam_practice04/
export NODE_OPTIONS=--max-old-space-size=4096
cd eam_practice04/
mvn clean package -Pwebapi
cd eam-provider/eam-provider-webapi
mvn -Pwebapi docker:build
mvn -Pwebapi docker:push
docker -H $para1 stack deploy --compose-file=src/main/docker/eam-provider-webapi.yaml iBizPractice --with-registry-auth
mvn clean package -Peamweb
cd eam-app/eam-app-eamweb
mvn -Peamweb docker:build
mvn -Peamweb docker:push
docker -H $para1 stack deploy --compose-file=src/main/docker/eam-app-eamweb.yaml iBizPractice --with-registry-auth
</command>
</hudson.tasks.Shell>
</builders>
......
......@@ -9,6 +9,6 @@ CMD echo "The application will start in ${IBZ_SLEEP}s..." && \
sleep ${IBZ_SLEEP} && \
java ${JAVA_OPTS} -Djava.security.egd=file:/dev/./urandom -jar /eam-app-eamweb.jar
EXPOSE 8080
EXPOSE 30009
ADD eam-app-eamweb.jar /eam-app-eamweb.jar
......@@ -3,9 +3,21 @@ services:
eam-app-eamweb:
image: registry.cn-shanghai.aliyuncs.com/ibizsys/eam-app-eamweb:latest
ports:
- "8080:8080"
- "30009:30009"
networks:
- 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:
mode: replicated
replicas: 1
......
......@@ -9,6 +9,6 @@ CMD echo "The application will start in ${IBZ_SLEEP}s..." && \
sleep ${IBZ_SLEEP} && \
java ${JAVA_OPTS} -Djava.security.egd=file:/dev/./urandom -jar /eam-provider-webapi.jar
EXPOSE 20009
EXPOSE 8081
ADD eam-provider-webapi.jar /eam-provider-webapi.jar
......@@ -3,21 +3,9 @@ services:
eam-provider-webapi:
image: registry.cn-shanghai.aliyuncs.com/ibizsys/eam-provider-webapi:latest
ports:
- "20009:20009"
- "8081:8081"
networks:
- 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:
mode: replicated
replicas: 1
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册