CI/CD初始化
parent
6d42175ca1
commit
3ee3c4eca1
|
@ -0,0 +1,15 @@
|
|||
#指定构建镜像的起始镜像
|
||||
FROM anolis-registry.cn-zhangjiakou.cr.aliyuncs.com/openanolis/openjdk:17-8.6
|
||||
#执行一些必备的条件
|
||||
# home
|
||||
# app.jar 启动jar包
|
||||
# logs 日志文件
|
||||
# uploadPath 上传路径
|
||||
ENV TZ=Asia/Shanghai
|
||||
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo '$TZ' > /etc/timezone
|
||||
#挂载工作目录
|
||||
VOLUME ["/home/logs/cloud-file","/home/uploadPath"]
|
||||
#拷贝执行文件
|
||||
COPY ./target/cloud-file.jar /home/app.jar
|
||||
ENTRYPOINT ["java","-jar"]
|
||||
CMD ["/home/app.jar"]
|
20
pom.xml
20
pom.xml
|
@ -9,12 +9,16 @@
|
|||
</parent>
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
|
||||
<artifactId>cloud-modules-file</artifactId>
|
||||
<artifactId>cloud-file</artifactId>
|
||||
|
||||
<version>1.0.0</version>
|
||||
|
||||
<description>
|
||||
cloud-modules-file文件服务
|
||||
</description>
|
||||
|
||||
|
||||
|
||||
<dependencies>
|
||||
|
||||
<!-- SpringCloud Alibaba Nacos -->
|
||||
|
@ -78,13 +82,13 @@
|
|||
</plugin>
|
||||
|
||||
<!-- 加入maven deploy插件,当在deploy时,忽略些model-->
|
||||
<plugin>
|
||||
<groupId>org.apache.maven.plugins</groupId>
|
||||
<artifactId>maven-deploy-plugin</artifactId>
|
||||
<configuration>
|
||||
<skip>true</skip>
|
||||
</configuration>
|
||||
</plugin>
|
||||
<!-- <plugin>-->
|
||||
<!-- <groupId>org.apache.maven.plugins</groupId>-->
|
||||
<!-- <artifactId>maven-deploy-plugin</artifactId>-->
|
||||
<!-- <configuration>-->
|
||||
<!-- <skip>true</skip>-->
|
||||
<!-- </configuration>-->
|
||||
<!-- </plugin>-->
|
||||
</plugins>
|
||||
</build>
|
||||
|
||||
|
|
Loading…
Reference in New Issue