Compare commits

..

No commits in common. "25d21ef884bba17457a62ebd655cf6f8b84dc96d" and "41207394e5b636c498ed85236f7c0dd33f299707" have entirely different histories.

2 changed files with 5 additions and 5 deletions

View File

@ -11,16 +11,16 @@ steps:
- name: dockerconfig
path: /root/.docker
commands:
- docker build -t harbor.picaiba.com/kszny/mes-api:1.0.0-cigs4 ./ && docker push harbor.picaiba.com/kszny/mes-api:1.0.0-cigs4
- docker build -t harbor.picaiba.com/kszny/mes-api:1.0.0-india ./ && docker push harbor.picaiba.com/kszny/mes-api:1.0.0-india
- name: deploy
image: harbor.picaiba.com/tools/kubectl
commands:
- echo "172.27.0.20 lb.kubesphere.local" >> /etc/hosts
- sleep 1
- kubectl scale --replicas=0 deployment/mes-api -n mes-cigs4
- kubectl scale --replicas=0 deployment/mes-api -n mes-india
- sleep 3
- kubectl scale --replicas=1 deployment/mes-api -n mes-cigs4
- kubectl scale --replicas=1 deployment/mes-api -n mes-india
depends_on:
- build
@ -34,6 +34,6 @@ volumes:
trigger:
branch:
- master
- porject/yd-monitor
event:
- push

View File

@ -49,7 +49,7 @@ ENV TZ="Asia/Shanghai"
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone
# 定义一些环境变量,方便环境变量传参
ENV JVM_OPTS=""
ENV JAVA_OPTS=""
ENV JAVA_OPTS="-Dspring.profiles.active=dev"
# 指定暴露的端口,起到说明的作用,不指定也会暴露对应端口
EXPOSE 8080
# 启动 jar 的命令