当前位置:网站首页>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 Pig
3.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
pig
Under the namespace , Find the workloadpig-auth
Right click and chooseDev Config
( Development configuration )

- Copy the following configuration file to
Dev Config
in .
# 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
rainbondvolumerwx
storageClass: 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
pattern
gitignore
About Rainbond
边栏推荐
- Realize payment function in applet
- 云安全日报220707:思科Expressway系列和网真视频通信服务器发现远程攻击漏洞,需要尽快升级
- I feel cheated. Wechat tests the function of "size number" internally, and two wechat can be registered with the same mobile number
- SQLite SQL exception near "with": syntax error
- Do you really understand sticky bag and half bag? 3 minutes to understand it
- PTA 1102 教超冠军卷
- Mathematical analysis_ Notes_ Chapter 11: Fourier series
- 我感觉被骗了,微信内测 “大小号” 功能,同一手机号可注册两个微信
- 链式二叉树的基本操作(C语言实现)
- 手把手教姐姐写消息队列
猜你喜欢
抢占周杰伦
强化学习-学习笔记8 | Q-learning
RIP和OSPF的区别和配置命令
【Unity Shader】插入Pass实现模型遮挡X光透视效果
I feel cheated. Wechat tests the function of "size number" internally, and two wechat can be registered with the same mobile number
如何给“不卖笔”的晨光估值?
前首富,沉迷种田
博睿数据入选《2022爱分析 · IT运维厂商全景报告》
Complete e-commerce system
伺服力矩控制模式下的力矩目标值(fTorque)计算
随机推荐
博睿数据入选《2022爱分析 · IT运维厂商全景报告》
Rules for filling in volunteers for college entrance examination
Learn open62541 -- [67] add custom enum and display name
Reject policy of thread pool
SD_ DATA_ RECEIVE_ SHIFT_ REGISTER
Creative changes brought about by the yuan universe
Kirk Borne的本周学习资源精选【点击标题直接下载】
单臂路由和三层交换的简单配置
Kubernetes DevOps CD工具对比选型
Thread factory in thread pool
虚拟数字人里的生意经
Standard ACL and extended ACL
Flipping Game(枚举)
手把手教姐姐写消息队列
[C language] string function
3.关于cookie
【HDU】5248-序列变换(贪心+二分)「建议收藏」
【剑指 Offer】59 - I. 滑动窗口的最大值
I feel cheated. Wechat tests the function of "size number" internally, and two wechat can be registered with the same mobile number
The live broadcast reservation channel is open! Unlock the secret of fast launching of audio and video applications