mirror of
https://gitee.com/wujiawei1207537021/wu-lazy-cloud-network.git
synced 2025-06-06 21:37:56 +08:00
[fix] spring 依赖问题
This commit is contained in:
parent
f28d14b8fd
commit
105d0cd933
@ -1,14 +0,0 @@
|
||||
|
||||
|
||||
#### 构建native 镜像
|
||||
```shell
|
||||
mvn clean compile
|
||||
mvn spring-boot:process-aot -Pnative
|
||||
|
||||
mvn native:build -Pnative
|
||||
```
|
||||
### 构建docker镜像
|
||||
```shell
|
||||
docker build -t docker-registry.laihui.com/middleground/middleground-under-cloud-heartbeat-client:middleground-2.4.2-native-SNAPSHOT_latest -f Native-Dockerfile .
|
||||
docker push docker-registry.laihui.com/middleground/middleground-under-cloud-heartbeat-client:middleground-2.4.2-native-SNAPSHOT_latest
|
||||
```
|
8
pom.xml
8
pom.xml
@ -13,7 +13,7 @@
|
||||
</parent>
|
||||
|
||||
<groupId>top.wu2020</groupId>
|
||||
<artifactId>lazy-cloud-network</artifactId>
|
||||
<artifactId>wu-lazy-cloud-network</artifactId>
|
||||
<packaging>pom</packaging>
|
||||
<version>1.2.1-JDK17-SNAPSHOT</version>
|
||||
<description>云上云下</description>
|
||||
@ -21,9 +21,9 @@
|
||||
|
||||
<modules>
|
||||
<!-- 云上服务组件 -->
|
||||
<module>lazy-cloud-heartbeat-server</module>
|
||||
<module>lazy-cloud-heartbeat-client</module>
|
||||
<module>lazy-cloud-heartbeat-common</module>
|
||||
<module>wu-lazy-cloud-heartbeat-server</module>
|
||||
<module>wu-lazy-cloud-heartbeat-client</module>
|
||||
<module>wu-lazy-cloud-heartbeat-common</module>
|
||||
</modules>
|
||||
|
||||
<properties>
|
||||
|
22
wu-lazy-cloud-heartbeat-client/Dockerfile
Normal file
22
wu-lazy-cloud-heartbeat-client/Dockerfile
Normal file
@ -0,0 +1,22 @@
|
||||
FROM registry.cn-hangzhou.aliyuncs.com/wu-lazy/wu-framework-parent:jdk-17.0.7-x64
|
||||
MAINTAINER wujiawei <1207537021@qq.com>
|
||||
|
||||
RUN echo "Asia/Shanghai" > /etc/timezone
|
||||
|
||||
|
||||
|
||||
ENV APP_JAR_NAME=$APP_NAME \
|
||||
JAVA_OPTS="-Xms512m -Xmx1024m -Djava.security.egd=file:/dev/./urandom" \
|
||||
PARAMS=""
|
||||
|
||||
|
||||
COPY target/*.jar /app.jar
|
||||
|
||||
|
||||
|
||||
ENTRYPOINT exec java -server $JAVA_OPTS -jar /app.jar $PARAMS
|
||||
|
||||
|
||||
|
||||
|
||||
|
46
wu-lazy-cloud-heartbeat-client/README.md
Normal file
46
wu-lazy-cloud-heartbeat-client/README.md
Normal file
@ -0,0 +1,46 @@
|
||||
|
||||
|
||||
#### 构建native 镜像
|
||||
```shell
|
||||
mvn clean compile
|
||||
mvn spring-boot:process-aot -Pnative
|
||||
|
||||
mvn native:build -Pnative
|
||||
```
|
||||
### 构建docker镜像
|
||||
```shell
|
||||
docker build -t docker-registry.laihui.com/middleground/middleground-under-cloud-heartbeat-client:middleground-2.4.2-native-SNAPSHOT_latest -f Native-Dockerfile .
|
||||
docker push docker-registry.laihui.com/middleground/middleground-under-cloud-heartbeat-client:middleground-2.4.2-native-SNAPSHOT_latest
|
||||
```
|
||||
|
||||
|
||||
## BUILD IMAGE
|
||||
|
||||
```shell
|
||||
|
||||
#docker login --username=1207537021@qq.com registry.cn-hangzhou.aliyuncs.com
|
||||
|
||||
docker build -t registry.cn-hangzhou.aliyuncs.com/wu-lazy/wu-lazy-cloud-heartbeat-client:server-jdk17-master .
|
||||
docker push registry.cn-hangzhou.aliyuncs.com/wu-lazy/wu-lazy-cloud-heartbeat-client:server-jdk17-master
|
||||
|
||||
```
|
||||
|
||||
```shell
|
||||
gu install native-image
|
||||
|
||||
gu list
|
||||
|
||||
mvn native:build
|
||||
```
|
||||
|
||||
```shell
|
||||
mvn clean native:compile -Pnative
|
||||
```
|
||||
|
||||
```RUN
|
||||
docker run -d -it -p 18080:18080 --name wu-lazy-cloud-heartbeat-client registry.cn-hangzhou.aliyuncs.com/wu-lazy/wu-lazy-cloud-heartbeat-client:server-jdk17-master
|
||||
|
||||
http://127.0.0.1:18080/swagger-ui/index.html
|
||||
|
||||
|
||||
```
|
@ -4,12 +4,12 @@
|
||||
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
|
||||
<parent>
|
||||
<groupId>top.wu2020</groupId>
|
||||
<artifactId>lazy-cloud-network</artifactId>
|
||||
<artifactId>wu-lazy-cloud-network</artifactId>
|
||||
<version>1.2.1-JDK17-SNAPSHOT</version>
|
||||
</parent>
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
|
||||
<artifactId>lazy-cloud-heartbeat-client</artifactId>
|
||||
<artifactId>wu-lazy-cloud-heartbeat-client</artifactId>
|
||||
<description>云下心跳客户端</description>
|
||||
|
||||
<properties>
|
||||
@ -21,7 +21,7 @@
|
||||
<!-- 通用心跳包 -->
|
||||
<dependency>
|
||||
<groupId>top.wu2020</groupId>
|
||||
<artifactId>lazy-cloud-heartbeat-common</artifactId>
|
||||
<artifactId>wu-lazy-cloud-heartbeat-common</artifactId>
|
||||
<version>1.2.1-JDK17-SNAPSHOT</version>
|
||||
</dependency>
|
||||
<dependency>
|
@ -5,11 +5,11 @@
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
<parent>
|
||||
<groupId>top.wu2020</groupId>
|
||||
<artifactId>lazy-cloud-network</artifactId>
|
||||
<artifactId>wu-lazy-cloud-network</artifactId>
|
||||
<version>1.2.1-JDK17-SNAPSHOT</version>
|
||||
</parent>
|
||||
|
||||
<artifactId>lazy-cloud-heartbeat-common</artifactId>
|
||||
<artifactId>wu-lazy-cloud-heartbeat-common</artifactId>
|
||||
|
||||
<properties>
|
||||
<maven.compiler.source>17</maven.compiler.source>
|
22
wu-lazy-cloud-heartbeat-server/Dockerfile
Normal file
22
wu-lazy-cloud-heartbeat-server/Dockerfile
Normal file
@ -0,0 +1,22 @@
|
||||
FROM registry.cn-hangzhou.aliyuncs.com/wu-lazy/wu-framework-parent:jdk-17.0.7-x64
|
||||
MAINTAINER wujiawei <1207537021@qq.com>
|
||||
|
||||
RUN echo "Asia/Shanghai" > /etc/timezone
|
||||
|
||||
|
||||
|
||||
ENV APP_JAR_NAME=$APP_NAME \
|
||||
JAVA_OPTS="-Xms512m -Xmx1024m -Djava.security.egd=file:/dev/./urandom" \
|
||||
PARAMS=""
|
||||
|
||||
|
||||
COPY target/*.jar /app.jar
|
||||
|
||||
|
||||
|
||||
ENTRYPOINT exec java -server $JAVA_OPTS -jar /app.jar $PARAMS
|
||||
|
||||
|
||||
|
||||
|
||||
|
33
wu-lazy-cloud-heartbeat-server/README.md
Normal file
33
wu-lazy-cloud-heartbeat-server/README.md
Normal file
@ -0,0 +1,33 @@
|
||||
# DOCKER JDK IMAGE
|
||||
|
||||
## BUILD IMAGE
|
||||
|
||||
```shell
|
||||
|
||||
#docker login --username=1207537021@qq.com registry.cn-hangzhou.aliyuncs.com
|
||||
|
||||
docker build -t registry.cn-hangzhou.aliyuncs.com/wu-lazy/wu-lazy-cloud-heartbeat-server:server-jdk17-master .
|
||||
docker push registry.cn-hangzhou.aliyuncs.com/wu-lazy/wu-lazy-cloud-heartbeat-server:server-jdk17-master
|
||||
|
||||
```
|
||||
|
||||
```shell
|
||||
gu install native-image
|
||||
|
||||
gu list
|
||||
|
||||
mvn native:build
|
||||
```
|
||||
|
||||
```shell
|
||||
mvn clean native:compile -Pnative
|
||||
```
|
||||
|
||||
```RUN
|
||||
docker run -d -it -p 18080:18080 --name wu-lazy-cloud-heartbeat-server registry.cn-hangzhou.aliyuncs.com/wu-lazy/wu-lazy-cloud-heartbeat-server:server-jdk17-master
|
||||
|
||||
http://127.0.0.1:18080/swagger-ui/index.html
|
||||
|
||||
|
||||
```
|
||||
|
@ -4,13 +4,13 @@
|
||||
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
|
||||
<parent>
|
||||
<groupId>top.wu2020</groupId>
|
||||
<artifactId>lazy-cloud-network</artifactId>
|
||||
<artifactId>wu-lazy-cloud-network</artifactId>
|
||||
<version>1.2.1-JDK17-SNAPSHOT</version>
|
||||
</parent>
|
||||
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
|
||||
<artifactId>lazy-cloud-heartbeat-server</artifactId>
|
||||
<artifactId>wu-lazy-cloud-heartbeat-server</artifactId>
|
||||
<description>云上心跳服务端</description>
|
||||
|
||||
<properties>
|
||||
@ -26,7 +26,7 @@
|
||||
<!-- 通用心跳包 -->
|
||||
<dependency>
|
||||
<groupId>top.wu2020</groupId>
|
||||
<artifactId>lazy-cloud-heartbeat-common</artifactId>
|
||||
<artifactId>wu-lazy-cloud-heartbeat-common</artifactId>
|
||||
<version>1.2.1-JDK17-SNAPSHOT</version>
|
||||
</dependency>
|
||||
<!-- 数据库 -->
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
x
Reference in New Issue
Block a user