Compare commits
10 Commits
9f4680bc54
...
f1cdac2d93
Author | SHA1 | Date |
---|---|---|
|
f1cdac2d93 | |
|
2000b4e8d4 | |
|
36d72a5825 | |
|
a06fc95d75 | |
|
5fcdc7e0d9 | |
|
511f28c7aa | |
|
0ecc3bc5b6 | |
|
d995b1e771 | |
|
c4ed45eb1e | |
|
c0f4e06758 |
|
@ -0,0 +1,21 @@
|
||||||
|
# |- 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-system"]
|
||||||
|
|
||||||
|
# 拷贝执行jar包文件
|
||||||
|
COPY ./target/cloud-system.jar /home/app.jar
|
||||||
|
|
||||||
|
# 构建启动命令
|
||||||
|
ENTRYPOINT ["java","-jar"]
|
||||||
|
CMD ["/home/app.jar"]
|
||||||
|
|
14
pom.xml
14
pom.xml
|
@ -4,12 +4,14 @@
|
||||||
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-modules</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-modules-system</artifactId>
|
<artifactId>cloud-system</artifactId>
|
||||||
|
|
||||||
|
<version>1.0.0</version>
|
||||||
|
|
||||||
<description>
|
<description>
|
||||||
cloud-modules-system系统模块
|
cloud-modules-system系统模块
|
||||||
|
@ -78,6 +80,14 @@
|
||||||
</dependency>
|
</dependency>
|
||||||
</dependencies>
|
</dependencies>
|
||||||
|
|
||||||
|
<!-- <distributionManagement>-->
|
||||||
|
<!-- <repository>-->
|
||||||
|
<!-- <id>yun-releases</id>-->
|
||||||
|
<!-- <name>yun-releases</name>-->
|
||||||
|
<!-- <url>http://47.116.165.181:8081/repository/maven-releases/</url>-->
|
||||||
|
<!-- </repository>-->
|
||||||
|
<!-- </distributionManagement>-->
|
||||||
|
|
||||||
<build>
|
<build>
|
||||||
<finalName>${project.artifactId}</finalName>
|
<finalName>${project.artifactId}</finalName>
|
||||||
<plugins>
|
<plugins>
|
||||||
|
|
|
@ -4,7 +4,7 @@ server:
|
||||||
|
|
||||||
# nacos线上地址
|
# nacos线上地址
|
||||||
nacos:
|
nacos:
|
||||||
addr: 47.116.168.171:8848
|
addr: 52.77.1.1:8848
|
||||||
user-name: nacos
|
user-name: nacos
|
||||||
password: nacos
|
password: nacos
|
||||||
namespace: mengyu
|
namespace: mengyu
|
||||||
|
|
Loading…
Reference in New Issue