CI/CD初始化

master
WeiRan 2024-07-28 16:31:18 +08:00
parent 938927ca03
commit cca491e59f
3 changed files with 25 additions and 1 deletions

23
Dockerfile 100644
View File

@ -0,0 +1,23 @@
#执行一些必备的条件
# |-home
# |- app.jar -启动jar包
# |- logs -日志文件
# |- uploadPath -上传路径
#指定构建镜像的起始镜像
FROM anolis-registry.cn-zhangjiakou.cr.aliyuncs.com/openanolis/dragonwell:17.0.4.0.4.8-standard-ga-8.6
#定义时区参数
# 设置环境变量TZ
ENV TZ=Asia/Shanghai
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone
#挂载工作目录
VOLUME ["/home/logs/cloud-gateway"]
#拷贝执行jar包文件
COPY ./target/cloud-gateway.jar /home/app.jar
#构建启动命令
ENTRYPOINT ["java","-jar"]
CMD ["/home/app.jar"]

View File

@ -9,6 +9,7 @@
<modelVersion>4.0.0</modelVersion>
<artifactId>cloud-gateway</artifactId>
<version>1.0.0</version>
<description>
cloud-gateway网关模块

View File

@ -4,7 +4,7 @@ server:
# nacos线上地址
nacos:
addr: 49.235.129.224:8848
addr: 106.15.67.54:8848
user-name: nacos
password: nacos
namespace: muyu-cloud