当前位置:网站首页>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 .
边栏推荐
- 怎样写一个增广矩阵到txt文件中
- 0-5VAC转4-20mA交流电流隔离变送器/转换模块
- 使用 BlocConsumer 同时构建响应式组件和监听状态
- Two kinds of updates lost and Solutions
- Which futures company is the safest to open a futures account?
- Anti climbing killer
- . Net automapper use
- Robot autonomous exploration DSVP: code parsing
- PHP method of obtaining image information
- Main functions of OS, Sys and random Standard Libraries
猜你喜欢

Ternary expressions, generative expressions, anonymous functions

Firefox browser installation impression notes clipping
![VTOL in Px4_ att_ Control source code analysis [supplement]](/img/7a/4ce0c939b9259faf59c52da2587693.jpg)
VTOL in Px4_ att_ Control source code analysis [supplement]

How to choose the appropriate automated testing tools?

UnicodeDecodeError: ‘gbk‘ codec can‘t decode byte 0xf9 in position 56: illegal multibyte sequence

Paint basic graphics with custompaint

Dayu200 experience officer MPPT photovoltaic power generation project dayu200, hi3861, Huawei cloud iotda

Vs custom template - take the custom class template as an example

如何实现横版游戏中角色的移动控制

Implementation method of data platform landing
随机推荐
使用 BlocConsumer 同时构建响应式组件和监听状态
OpenGL homework - Hello, triangle
Ternary expressions, generative expressions, anonymous functions
Oracle advanced (VI) Oracle expdp/impdp details
php 记录完整对接腾讯云直播以及im直播群聊 所遇到的坑
PKPM 2020 software installation package download and installation tutorial
IP network active evaluation system -- x-vision
SAR image quality evaluation
DBSync新增对MongoDB、ES的支持
Attitude estimation (complementary filtering)
vite Unrestricted file system access to
苹果在iOS 16中通过'虚拟卡'安全功能进一步进军金融领域
微服务架构开源框架详情介绍
SAR影像质量评估
如何选择合适的自动化测试工具?
VTOL in Px4_ att_ Control source code analysis [supplement]
Remember aximp once Use of exe tool
The PHP source code of the new website + remove authorization / support burning goose instead of pumping
如何实现横版游戏中角色的移动控制
UWA Q & a collection