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">
|
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
|
||||||
<parent>
|
<parent>
|
||||||
<groupId>com.muyu</groupId>
|
<groupId>com.muyu</groupId>
|
||||||
<artifactId>cloud-server</artifactId>
|
<artifactId>cloud-server-parent</artifactId>
|
||||||
<version>3.6.3</version>
|
<version>3.6.3</version>
|
||||||
</parent>
|
</parent>
|
||||||
<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网关模块
|
||||||
</description>
|
</description>
|
||||||
|
@ -98,7 +101,16 @@
|
||||||
</execution>
|
</execution>
|
||||||
</executions>
|
</executions>
|
||||||
</plugin>
|
</plugin>
|
||||||
|
<!-- 加入maven deploy插件,当在deploy时,忽略些model-->
|
||||||
|
<plugin>
|
||||||
|
<groupId>org.apache.maven.plugins</groupId>
|
||||||
|
<artifactId>maven-deploy-plugin</artifactId>
|
||||||
|
<configuration>
|
||||||
|
<skip>true</skip>
|
||||||
|
</configuration>
|
||||||
|
</plugin>
|
||||||
</plugins>
|
</plugins>
|
||||||
|
|
||||||
</build>
|
</build>
|
||||||
|
|
||||||
</project>
|
</project>
|
||||||
|
|
Loading…
Reference in New Issue