CI/CD初始化
parent
938927ca03
commit
cca491e59f
|
@ -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"]
|
1
pom.xml
1
pom.xml
|
@ -9,6 +9,7 @@
|
||||||
<modelVersion>4.0.0</modelVersion>
|
<modelVersion>4.0.0</modelVersion>
|
||||||
|
|
||||||
<artifactId>cloud-gateway</artifactId>
|
<artifactId>cloud-gateway</artifactId>
|
||||||
|
<version>1.0.0</version>
|
||||||
|
|
||||||
<description>
|
<description>
|
||||||
cloud-gateway网关模块
|
cloud-gateway网关模块
|
||||||
|
|
|
@ -4,7 +4,7 @@ server:
|
||||||
|
|
||||||
# nacos线上地址
|
# nacos线上地址
|
||||||
nacos:
|
nacos:
|
||||||
addr: 49.235.129.224:8848
|
addr: 106.15.67.54:8848
|
||||||
user-name: nacos
|
user-name: nacos
|
||||||
password: nacos
|
password: nacos
|
||||||
namespace: muyu-cloud
|
namespace: muyu-cloud
|
||||||
|
|
Loading…
Reference in New Issue