wu-lazy-cloud-network/wu-lazy-cloud-heartbeat-client
2025-05-27 11:04:18 +08:00
..
2025-05-27 11:04:18 +08:00
2024-05-29 10:46:07 +08:00
2024-05-29 10:46:07 +08:00
2025-05-27 11:04:18 +08:00
2024-05-29 17:30:22 +08:00

构建native 镜像

mvn clean compile
mvn spring-boot:process-aot -Pnative

mvn native:build -Pnative

构建docker镜像

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


#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

run

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-lazy-cloud-heartbeat-client:server-jdk17-master



gu install native-image

gu list

mvn native:build
 mvn clean native:compile -Pnative
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