当前位置:网站首页>Micro service remote debug, nocalhost + rainbow micro service development second bullet
Micro service remote debug, nocalhost + rainbow micro service development second bullet
2022-07-07 19:05:00 【InfoQ】
- Onekey Run and long-range Debug
- Persistent configuration
- Development container resource limitations
- Port forwarding
Development mode Development mode Development mode Deploy Rainbond + SpringCloud
Deploy Rainbond
Deploy SpringCloud
Spring Cloud Pig3.5.0
Nocalhost docking Rainbond
- install Nocalhost JetBrains Plugin plug-in unit , See documentationinstall Nocalhost JetBrains Plugin plug-in unit.
- obtain K8s Kubeconfig, See documentationobtain Kubeconfig file.
- stay
pigUnder the namespace , Find the workloadpig-authRight click and chooseDev Config( Development configuration )

- Copy the following configuration file to
Dev Configin .
# Deployment Name
name: pig-auth
serviceType: deployment
containers:
# Deployment Main container name
- name: auth
dev:
# Developing mirroring , The image contains Java Maven Environmental Science
image: registry.cn-hangzhou.aliyuncs.com/zqqq/maven:3.8.6-openjdk-8
# The default terminal is bash
shell: bash
# Rainbond Provided StorageClass Name
storageClass: rainbondvolumerwx
# Configure development container resources
resources:
limits:
memory: 4096Mi
cpu: "2"
requests:
memory: 2048Mi
cpu: "1"
persistentVolumeDirs:
# Maven Depend on the package cache path , coordination storageClass Eat together
- path: /root/.m2/repository
capacity: 10Gi
command:
# One click start command , Install dependent packages and start pig-auth Sub module
run:
- mvn
- install
- '&&'
- mvn
- spring-boot:run
- -pl
# Specify sub module startup
- pig-auth
# Onekey Debug command , Install dependent packages and Debug pig-auth Sub module
debug:
- mvn
- install
- '&&'
- mvn
- spring-boot:run
- -pl
# Specify sub module startup
- pig-auth
# Java Debug command
- -Dspring-boot.run.jvmArguments=-agentlib:jdwp=transport=dt_socket,server=y,suspend=y,address=5005
debug:
# Remote port , Corresponding Debug In the command address=5005
remoteDebugPort: 5005
# choice Java Language
language: java
# Thermal loading
hotReload: true
# File synchronization
sync:
type: send
mode: gitIgnore
deleteProtection: true
# Port forwarding , Forward... In the container 3000 Port to local 3999
portForward:
- 3999:3000
Onekey Run
- Right click workload
pig-auth.
- choice Remote Run.
- Nocalhost Will automatically enter DevMode And implement Remote Run.

Onekey Debug
- Right click workload
pig-auth.
- choice Remote Debug.
- Nocalhost Will automatically enter DevMode And implement Remote Debug.
- Put a breakpoint in the code , Initiate request , Get into IDE Debug Pattern .

Persistent configuration
Dependency package journal rainbondvolumerwxstorageClass: rainbondvolumerwx
persistentVolumeDirs:
- path: /root/.m2/repository
capacity: 10Gi

Container resource limit
resources:
limits:
memory: 4096Mi
cpu: "2"
requests:
memory: 2048Mi
cpu: "1"
Port forwarding
portForward:
- 3999:3000 # Forwarding container 3000 Port to local 3999 port
Last
patterngitignoreAbout Rainbond
边栏推荐
- DeSci:去中心化科学是Web3.0的新趋势?
- 线程池的拒绝策略
- Redis
- Scientists have observed for the first time that the "electron vortex" helps to design more efficient electronic products
- idea彻底卸载安装及配置笔记
- Complete e-commerce system
- Continuous test (CT) practical experience sharing
- 国内的软件测试会受到偏见吗
- 能同时做三个分割任务的模型,性能和效率优于MaskFormer!Meta&UIUC提出通用分割模型,性能优于任务特定模型!开源!...
- 持续测试(CT)实战经验分享
猜你喜欢
随机推荐
"Decryption" Huawei machine vision Corps: Huawei is moving up and the industry is moving forward
ip netns 命令(备忘)
Basic concepts and properties of binary tree
idea彻底卸载安装及配置笔记
PTA 1102 教超冠军卷
數據驗證框架 Apache BVal 再使用
The live broadcast reservation channel is open! Unlock the secret of fast launching of audio and video applications
[Blue Bridge Cup training 100 questions] sort scratch from small to large. Blue Bridge Cup scratch competition special prediction programming question centralized training simulation exercise question
Yunjing network technology interview question [Hangzhou multi tester] [Hangzhou multi tester _ Wang Sir]
高温火烧浑不怕,钟薛高想留清白在人间
RIP和OSPF的区别和配置命令
Realize payment function in applet
Charles+Postern的APP抓包
Usage of PHP interview questions foreach ($arr as $value) and foreach ($arr as $value)
POJ 2392 Space Elevator
App capture of charles+drony
体总:安全有序恢复线下体育赛事,力争做到国内赛事应办尽办
链式二叉树的基本操作(C语言实现)
Redis的发布与订阅
[software test] from the direct employment of the boss of the enterprise version, looking at the resume, there is a reason why you are not covered






![[paper sharing] where's crypto?](/img/27/9b47bfcdff8307e63f2699d6a4e1b4.png)


