当前位置:网站首页>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
边栏推荐
- 我感觉被骗了,微信内测 “大小号” 功能,同一手机号可注册两个微信
- Mathematical analysis_ Notes_ Chapter 11: Fourier series
- Datasimba launched wechat applet, and datanuza accepted the test of the whole scene| StartDT Hackathon
- CVPR 2022 - learning non target knowledge for semantic segmentation of small samples
- 【剑指 Offer】59 - I. 滑动窗口的最大值
- [demo] circular queue and conditional lock realize the communication between goroutines
- 国内首次!这家中国企业的语言AI实力被公认全球No.2!仅次于谷歌
- 99% of people don't know that privatized deployment is also a permanently free instant messaging software!
- idea彻底卸载安装及配置笔记
- 嵌入式面试题(算法部分)
猜你喜欢

如何给“不卖笔”的晨光估值?

Basic operation of chain binary tree (implemented in C language)

DeSci:去中心化科学是Web3.0的新趋势?

SD_ DATA_ RECEIVE_ SHIFT_ REGISTER
![Learn open62541 -- [67] add custom enum and display name](/img/98/e5e25af90b3f98c2be11d7d21e5ea6.png)
Learn open62541 -- [67] add custom enum and display name

【软件测试】从企业版BOSS直聘,看求职简历,你没被面上是有原因的

如何选择合适的自动化测试工具?
![[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](/img/08/5f4b4e2700606554516807c01454fd.png)
[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

Save the memory of the model! Meta & UC Berkeley proposed memvit. The modeling time support is 30 times longer than the existing model, and the calculation amount is only increased by 4.5%

The performance and efficiency of the model that can do three segmentation tasks at the same time is better than maskformer! Meta & UIUC proposes a general segmentation model with better performance t
随机推荐
如何给“不卖笔”的晨光估值?
Do you know all four common cache modes?
[demo] circular queue and conditional lock realize the communication between goroutines
ES6笔记一
【软件测试】从企业版BOSS直聘,看求职简历,你没被面上是有原因的
The moveposition function of rigidbody2d of unity2d solves the problem of people or screen jitter when moving
Interview vipshop internship testing post, Tiktok internship testing post [true submission]
Charles+Postern的APP抓包
Kubernetes DevOps CD工具对比选型
POJ 1182 :食物链(并查集)[通俗易懂]
Will low code help enterprises' digital transformation make programmers unemployed?
testing and SQA_动态白盒測试[通俗易懂]
国内的软件测试会受到偏见吗
Redis cluster and expansion
数据验证框架 Apache BVal 再使用
3.关于cookie
线程池和单例模式以及文件操作
二叉树的基本概念和性质
SlashData开发者工具榜首等你而定!!!
嵌入式C语言程序调试和宏使用的技巧