当前位置:网站首页>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
边栏推荐
- [unity shader] insert pass to realize the X-ray perspective effect of model occlusion
- PTA 1102 teaching Super Champion volume
- 持续测试(CT)实战经验分享
- Redis集群与扩展
- Yunjing network technology interview question [Hangzhou multi tester] [Hangzhou multi tester _ Wang Sir]
- Redis的发布与订阅
- Will low code help enterprises' digital transformation make programmers unemployed?
- 虚拟数字人里的生意经
- 6. About JWT
- Standard ACL and extended ACL
猜你喜欢
Tsinghua, Cambridge and UIC jointly launched the first Chinese fact verification data set: evidence-based, covering many fields such as medical society
小试牛刀之NunJucks模板引擎
Cadre de validation des données Apache bval réutilisé
數據驗證框架 Apache BVal 再使用
微信网页调试8.0.19换掉X5内核,改用xweb,所以x5调试方式已经不能用了,现在有了解决方案
3.关于cookie
The live broadcast reservation channel is open! Unlock the secret of fast launching of audio and video applications
Redis cluster and expansion
高温火烧浑不怕,钟薛高想留清白在人间
[论文分享] Where’s Crypto?
随机推荐
App capture of charles+drony
Wechat web debugging 8.0.19 replace the X5 kernel with xweb, so the X5 debugging method can no longer be used. Now there is a solution
Antisamy: a solution against XSS attack tutorial
Improve application security through nonce field of play integrity API
10 schemes to ensure interface data security
Complete e-commerce system
Short selling, overprinting and stock keeping, Oriental selection actually sold 2.66 million books in Tiktok in one month
Flipping Game(枚举)
Redis publishing and subscription
Scientists have observed for the first time that the "electron vortex" helps to design more efficient electronic products
Thread pool and singleton mode and file operation
直播预约通道开启!解锁音视频应用快速上线的秘诀
伺服力矩控制模式下的力矩目标值(fTorque)计算
idea彻底卸载安装及配置笔记
[C language] string function
Continuous test (CT) practical experience sharing
RISCV64
AI来搞财富分配比人更公平?来自DeepMind的多人博弈游戏研究
CVPR 2022 - learning non target knowledge for semantic segmentation of small samples
来了!GaussDB(for Cassandra)新特性亮相