mirror of
https://gitee.com/wujiawei1207537021/wu-lazy-cloud-network.git
synced 2025-06-17 02:45:03 +08:00
[fix] change
This commit is contained in:
55
wu-lazy-cloud-heartbeat-client/README.md
Normal file
55
wu-lazy-cloud-heartbeat-client/README.md
Normal file
@ -0,0 +1,55 @@
|
||||
#### 构建native 镜像
|
||||
|
||||
```shell
|
||||
mvn clean compile
|
||||
mvn spring-boot:process-aot -Pnative
|
||||
|
||||
mvn native:build -Pnative
|
||||
```
|
||||
|
||||
### 构建docker镜像
|
||||
|
||||
```shell
|
||||
docker build -t docker-registry.wujiawei.com/lazy/lazy-under-cloud-heartbeat-client:lazy-2.4.2-native-SNAPSHOT_latest -f Native-Dockerfile .
|
||||
docker push docker-registry.wujiawei.com/lazy/lazy-under-cloud-heartbeat-client:lazy-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-smart-agent-network-heartbeat-client:server-jdk17-master .
|
||||
docker push registry.cn-hangzhou.aliyuncs.com/wu-lazy/wu-smart-agent-network-heartbeat-client:server-jdk17-master
|
||||
|
||||
```
|
||||
|
||||
### run
|
||||
|
||||
```shell
|
||||
docker run -d -it --name client -e spring.lazy.netty.inet-host=124.222.48.62 -e spring.lazy.netty.inet-port=30676 -e spring.lazy.netty.client-id=node1 registry.cn-hangzhou.aliyuncs.com/wu-lazy/wu-smart-agent-network-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-smart-agent-network-heartbeat-client registry.cn-hangzhou.aliyuncs.com/wu-lazy/wu-smart-agent-network-heartbeat-client:server-jdk17-master
|
||||
|
||||
http://127.0.0.1:18080/swagger-ui/index.html
|
||||
|
||||
|
||||
```
|
Reference in New Issue
Block a user