当前位置:网站首页>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 22:32:00 【51CTO】
In the previous article, we introduced how to pass Nocalhost Rapid development of Rainbond Microservices on , Introduced the basic development process .
This article will continue to introduce , Use Nocalhost Development profile Achieve the following :
- Onekey Run and long-range Debug
- Persistent configuration
- Development container resource limitations
- Port forwarding
What is development configuration ?
Development configuration is around Development mode To carry out , For example, what image is used to enter Development mode , Whether you need to turn on persistence to save the contents of the development container , Which files are synchronized into the development container , How to debug with one click 、 Run the services in the container with one click . After configuring the correct and appropriate development configuration , Can be used in Nocalhost Development mode It's more handy when it comes to .
Deploy Rainbond + SpringCloud
Next, continue to the above article SpringCloud Pig For example , debugging Java Maven Service Pig-auth modular .
project Gitee Address : https://gitee.com/zhangbigqi/pig
Deploy Rainbond
I won't go into details here Rainbond Installation , see also be based on Linux install Rainbond.
Deploy SpringCloud
We are Rainbond After docking with the open source app store , Search in the open source app store Spring Cloud Pig install 3.5.0 edition .
The English name of the application component installed from the app store is an automatically generated string , We need to set the English name of the component (Deployment Name), adopt Nocalhost When connecting to the cluster, you can distinguish clearly Deployment Corresponding components .

Nocalhost docking Rainbond
install Nocalhost JetBrains Plugin plug-in unit , See documentation install Nocalhost JetBrains Plugin plug-in unit .
obtain K8s Kubeconfig, See documentation obtain Kubeconfig file .
stay
pigUnder the namespace , Find the workloadpig-authRight click and chooseDev Config( Development configuration )

- Copy the following configuration file to
Dev Configin .
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
At development time , Most of the files we want to persist are Dependency package journal , This article also caches Java The dependency package of .
rainbondvolumerwx yes Rainbond The storage class provided by default , After filling in the following configuration, it will be automatically created under the current namespace PVC, as follows :

Container resource limit
Limit the resources of the development container , Quota can maximize the resource utilization of the server , You can modify it through the following development configuration :
Port forwarding
Forward container port to local , You can modify it through the following development configuration :
Last
Of course Nocalhost You can debug multiple microservices at the same time , In the same way, you only need to modify Deployment Name and Containers Name And the sub module of microservice .
Nocalhost There are also some things that are not mentioned in the development configuration article , such as : Development environment variables 、 Two modes of file synchronization patterngitignore wait , also Nocalhost Support for multiple languages ,Java It's just one of them , Guys can explore on their own .
Nocalhost + Rainbond Let's develop 、 More efficient deployment 、 convenient .
边栏推荐
- Revit secondary development - collision detection
- 新版代挂网站PHP源码+去除授权/支持燃鹅代抽
- [azure microservice service fabric] start the performance monitor in the SF node and set the method of capturing the process
- Robot autonomous exploration DSVP: code parsing
- Aspose. Words merge cells
- OpenGL job coordinate system
- #DAYU200体验官#MPPT光伏发电项目 DAYU200、Hi3861、华为云IotDA
- Revit secondary development - modify wall thickness
- Remember that a development is encountered in the pit of origin string sorting
- Variables and constants
猜你喜欢

Crawler (17) - Interview (2) | crawler interview question bank
![[azure microservice service fabric] the service fabric cluster hangs up because the certificate expires (the upgrade cannot be completed, and the node is unavailable)](/img/35/1bb21c100980eb1075dbbcb922e181.png)
[azure microservice service fabric] the service fabric cluster hangs up because the certificate expires (the upgrade cannot be completed, and the node is unavailable)

100million single men and women "online dating", supporting 13billion IPOs
![[environment] pycharm sets the tool to convert QRC into py file](/img/4f/d1c811dea23e3695a8b6d04b938bb5.jpg)
[environment] pycharm sets the tool to convert QRC into py file

应用实践 | 数仓体系效率全面提升!同程数科基于 Apache Doris 的数据仓库建设

Px4 autonomous flight

Overseas agent recommendation

. Net automapper use

The strongest installation of the twin tower model, Google is playing "antique" again?

Ueeditor custom display insert code
随机推荐
Revit secondary development - cut view
Record problems fgui tween animation will be inexplicably killed
Remove the default background color of chrome input input box
The function is really powerful!
Revit secondary development - Hide occlusion elements
Aspose. Word operation word document (I)
npm uninstall和rm直接删除的区别
Amesim2016 and matlab2017b joint simulation environment construction
如何实现横版游戏中角色的移动控制
Anti climbing killer
Revit secondary development - get the project file path
戴森官方直营店免费造型服务现已开放预约 先锋科技诠释护发造型理念,助力消费者解锁多元闪耀造型
Form组件常用校验规则-2(持续更新中~)
Robot autonomous exploration series papers environment code
[interview arrangement] 0211 game engine server
OpenGL job coordinate system
How to choose the appropriate automated testing tools?
Two kinds of updates lost and Solutions
[advanced MySQL] index details (I): index data page structure
JS number is insufficient, and 0 is added