Compare commits

...

10 Commits

Author SHA1 Message Date
86191 f1cdac2d93 最后一次更改 2024-07-27 18:30:33 +08:00
86191 2000b4e8d4 Merge remote-tracking branch 'origin/master' 2024-07-27 17:57:23 +08:00
86191 36d72a5825 最后一次更改 2024-07-27 17:57:13 +08:00
YP520 a06fc95d75 更新 src/main/java/com/muyu/system/CloudSystemApplication.java 2024-07-27 17:49:02 +08:00
86191 5fcdc7e0d9 对启动类有更改 2024-07-27 17:18:14 +08:00
86191 511f28c7aa 更新服务nacos地址 2024-07-27 16:21:33 +08:00
86191 0ecc3bc5b6 增加版本号 2024-07-27 12:56:08 +08:00
86191 d995b1e771 Merge remote-tracking branch 'origin/master' 2024-07-27 12:02:41 +08:00
86191 c4ed45eb1e dockerfile 2024-07-27 12:01:59 +08:00
86191 c0f4e06758 dockerfile 2024-07-27 11:44:01 +08:00
3 changed files with 34 additions and 3 deletions

21
Dockerfile 100644
View File

@ -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
View File

@ -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>

View File

@ -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