This commit is contained in:
parent
eb9bc676b4
commit
bce224c222
11
.drone.yml
11
.drone.yml
@ -79,6 +79,12 @@ steps: # 定义流水线执行步骤,这些步骤将顺序执行
|
||||
command_timeout: 5m # 远程执行命令超时时间
|
||||
|
||||
script:
|
||||
- echo "start copy"
|
||||
- scp -r /ludu/maven/build/ludu-module-ticketing root@120.46.37.243:/ludu/maven/build
|
||||
- scp -r /ludu/maven/build/ludu-module-parking root@120.46.37.243:/ludu/maven/build
|
||||
- scp -r /ludu/maven/build/ludu-module-datacenter root@120.46.37.243:/ludu/maven/build
|
||||
|
||||
- echo "start run.sh"
|
||||
- cd /ludu/maven/build/yudao-gateway/
|
||||
- chmod +x ./run.sh # 更改为可执行脚本
|
||||
- ./run.sh || echo "yudao-gateway build failed" # 运行脚本打包应用镜像并运行
|
||||
@ -95,10 +101,7 @@ steps: # 定义流水线执行步骤,这些步骤将顺序执行
|
||||
- chmod +x ./run.sh # 更改为可执行脚本
|
||||
- ./run.sh || echo "ludu-job-admin build failed" # 运行脚本打包应用镜像并运行
|
||||
|
||||
- echo "start copy"
|
||||
- scp -r /ludu/maven/build/ludu-module-ticketing root@120.46.37.243:/ludu/maven/build
|
||||
- scp -r /ludu/maven/build/ludu-module-parking root@120.46.37.243:/ludu/maven/build
|
||||
- scp -r /ludu/maven/build/ludu-module-datacenter root@120.46.37.243:/ludu/maven/build
|
||||
|
||||
|
||||
- name: build-other-service
|
||||
|
||||
|
@ -9,11 +9,12 @@ WORKDIR /ludu-job-admin-biz
|
||||
COPY ./target/ludu-job-admin-biz.jar app.jar
|
||||
|
||||
## 设置 TZ 时区
|
||||
ENV TZ=Asia/Shanghai
|
||||
## 设置 JAVA_OPTS 环境变量,可通过 docker run -e "JAVA_OPTS=" 进行覆盖
|
||||
ENV TZ=Asia/Shanghai JAVA_OPTS="-Xms512m -Xmx512m"
|
||||
ENV JAVA_OPTS="-Xms512m -Xmx512m -Djava.security.egd=file:/dev/./urandom"
|
||||
|
||||
## 暴露后端项目的 9090 端口
|
||||
EXPOSE 9090
|
||||
|
||||
## 启动后端项目
|
||||
CMD java ${JAVA_OPTS} app.jar
|
||||
CMD java ${JAVA_OPTS} -jar app.jar
|
||||
|
@ -9,11 +9,12 @@ WORKDIR /ludu-module-datacenter-biz
|
||||
COPY ./target/ludu-module-datacenter-biz.jar app.jar
|
||||
|
||||
## 设置 TZ 时区
|
||||
ENV TZ=Asia/Shanghai
|
||||
## 设置 JAVA_OPTS 环境变量,可通过 docker run -e "JAVA_OPTS=" 进行覆盖
|
||||
ENV TZ=Asia/Shanghai JAVA_OPTS="-Xms512m -Xmx512m"
|
||||
ENV JAVA_OPTS="-Xms512m -Xmx512m -Djava.security.egd=file:/dev/./urandom"
|
||||
|
||||
## 暴露后端项目的 48092 端口
|
||||
EXPOSE 48092
|
||||
|
||||
## 启动后端项目
|
||||
CMD java ${JAVA_OPTS} app.jar
|
||||
CMD java ${JAVA_OPTS} -jar app.jar
|
@ -9,11 +9,12 @@ WORKDIR /ludu-module-parking-biz
|
||||
COPY ./target/ludu-module-parking-biz.jar app.jar
|
||||
|
||||
## 设置 TZ 时区
|
||||
ENV TZ=Asia/Shanghai
|
||||
## 设置 JAVA_OPTS 环境变量,可通过 docker run -e "JAVA_OPTS=" 进行覆盖
|
||||
ENV TZ=Asia/Shanghai JAVA_OPTS="-Xms512m -Xmx512m"
|
||||
ENV JAVA_OPTS="-Xms512m -Xmx512m -Djava.security.egd=file:/dev/./urandom"
|
||||
|
||||
## 暴露后端项目的 48090 端口
|
||||
EXPOSE 48090
|
||||
|
||||
## 启动后端项目
|
||||
CMD java ${JAVA_OPTS} app.jar
|
||||
CMD java ${JAVA_OPTS} -jar app.jar
|
||||
|
@ -9,11 +9,12 @@ WORKDIR /ludu-module-ticketing-biz
|
||||
COPY ./target/ludu-module-ticketing-biz.jar app.jar
|
||||
|
||||
## 设置 TZ 时区
|
||||
ENV TZ=Asia/Shanghai
|
||||
## 设置 JAVA_OPTS 环境变量,可通过 docker run -e "JAVA_OPTS=" 进行覆盖
|
||||
ENV TZ=Asia/Shanghai JAVA_OPTS="-Xms512m -Xmx512m"
|
||||
ENV JAVA_OPTS="-Xms512m -Xmx512m -Djava.security.egd=file:/dev/./urandom"
|
||||
|
||||
## 暴露后端项目的 48088 端口
|
||||
EXPOSE 48088
|
||||
|
||||
## 启动后端项目
|
||||
CMD java ${JAVA_OPTS} app.jar
|
||||
CMD java ${JAVA_OPTS} -jar app.jar
|
||||
|
@ -7,6 +7,7 @@ WORKDIR /yudao-gateway
|
||||
ADD ./target/yudao-gateway.jar app.jar
|
||||
|
||||
## 设置 TZ 时区
|
||||
ENV TZ=Asia/Shanghai
|
||||
## 设置 JAVA_OPTS 环境变量,可通过 docker run -e "JAVA_OPTS=" 进行覆盖
|
||||
ENV JAVA_OPTS="-Xms512m -Xmx512m -Djava.security.egd=file:/dev/./urandom"
|
||||
|
||||
|
@ -9,11 +9,12 @@ WORKDIR /yudao-module-infra-biz
|
||||
COPY ./target/yudao-module-infra-biz.jar app.jar
|
||||
|
||||
## 设置 TZ 时区
|
||||
ENV TZ=Asia/Shanghai
|
||||
## 设置 JAVA_OPTS 环境变量,可通过 docker run -e "JAVA_OPTS=" 进行覆盖
|
||||
ENV TZ=Asia/Shanghai JAVA_OPTS="-Xms512m -Xmx512m"
|
||||
ENV JAVA_OPTS="-Xms512m -Xmx512m -Djava.security.egd=file:/dev/./urandom"
|
||||
|
||||
## 暴露后端项目的 48082 端口
|
||||
EXPOSE 48082
|
||||
|
||||
## 启动后端项目
|
||||
CMD java ${JAVA_OPTS} app.jar
|
||||
CMD java ${JAVA_OPTS} -jar app.jar
|
||||
|
@ -9,11 +9,12 @@ WORKDIR /yudao-module-system-biz
|
||||
COPY ./target/yudao-module-system-biz.jar app.jar
|
||||
|
||||
## 设置 TZ 时区
|
||||
ENV TZ=Asia/Shanghai
|
||||
## 设置 JAVA_OPTS 环境变量,可通过 docker run -e "JAVA_OPTS=" 进行覆盖
|
||||
ENV TZ=Asia/Shanghai JAVA_OPTS="-Xms512m -Xmx512m"
|
||||
ENV JAVA_OPTS="-Xms512m -Xmx512m -Djava.security.egd=file:/dev/./urandom"
|
||||
|
||||
## 暴露后端项目的 48081 端口
|
||||
EXPOSE 48081
|
||||
|
||||
## 启动后端项目
|
||||
CMD java ${JAVA_OPTS} app.jar
|
||||
CMD java ${JAVA_OPTS} -jar app.jar
|
||||
|
Loading…
Reference in New Issue
Block a user