CI/CD初始化
parent
00d42ee3aa
commit
cfee32421f
|
@ -0,0 +1,20 @@
|
|||
#|- home
|
||||
# |- app.jar - 启动jar包
|
||||
# |-logs - 日志文件
|
||||
|
||||
#指定构建镜像的起始镜像
|
||||
FROM anolis-registry.cn-zhangjiakou.cr.aliyuncs.com/openanolis/dragonwell:17.0.4.0.4.8-standard-ga-8.6
|
||||
|
||||
#定义时区参数
|
||||
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"]
|
14
pom.xml
14
pom.xml
|
@ -3,13 +3,16 @@
|
|||
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
|
||||
<parent>
|
||||
<groupId>com.muyu</groupId>
|
||||
<artifactId>cloud-server</artifactId>
|
||||
<artifactId>cloud-server-parent</artifactId>
|
||||
<version>3.6.3</version>
|
||||
</parent>
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
|
||||
<artifactId>cloud-gateway</artifactId>
|
||||
|
||||
|
||||
<version>1.0.0</version>
|
||||
|
||||
<description>
|
||||
cloud-gateway网关模块
|
||||
</description>
|
||||
|
@ -98,7 +101,16 @@
|
|||
</execution>
|
||||
</executions>
|
||||
</plugin>
|
||||
<!-- 加入maven deploy插件,当在deploy时,忽略些model-->
|
||||
<plugin>
|
||||
<groupId>org.apache.maven.plugins</groupId>
|
||||
<artifactId>maven-deploy-plugin</artifactId>
|
||||
<configuration>
|
||||
<skip>true</skip>
|
||||
</configuration>
|
||||
</plugin>
|
||||
</plugins>
|
||||
|
||||
</build>
|
||||
|
||||
</project>
|
||||
|
|
Loading…
Reference in New Issue