当前位置:网站首页>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
边栏推荐
- [C language] string function
- Rules for filling in volunteers for college entrance examination
- Skills of embedded C language program debugging and macro use
- ES6笔记一
- Thread pool and singleton mode and file operation
- 3. About cookies
- Hutool - lightweight DB operation solution
- Flipping Game(枚举)
- [sword finger offer] 59 - I. maximum value of sliding window
- GSAP animation library
猜你喜欢
3.关于cookie
标准ACL与扩展ACL
50亿,福建又诞生一只母基金
RISCV64
Creative changes brought about by the yuan universe
博睿数据入选《2022爱分析 · IT运维厂商全景报告》
清华、剑桥、UIC联合推出首个中文事实核查数据集:基于证据、涵盖医疗社会等多个领域
2022上半年朋友圈都在传的10本书,找到了
Reinforcement learning - learning notes 8 | Q-learning
Short selling, overprinting and stock keeping, Oriental selection actually sold 2.66 million books in Tiktok in one month
随机推荐
unity2d的Rigidbody2D的MovePosition函数移动时人物或屏幕抖动问题解决
Redis cluster and expansion
2022年推荐免费在线接收短信平台(国内、国外)
Redis的发布与订阅
低代码助力企业数字化转型会让程序员失业?
GSAP animation library
手把手教姐姐写消息队列
SD_ DATA_ RECEIVE_ SHIFT_ REGISTER
gsap动画库
Idea completely uninstalls installation and configuration notes
"Decryption" Huawei machine vision Corps: Huawei is moving up and the industry is moving forward
Simple configuration of single arm routing and layer 3 switching
Short selling, overprinting and stock keeping, Oriental selection actually sold 2.66 million books in Tiktok in one month
Kubernetes DevOps CD工具对比选型
Basic concepts and properties of binary tree
3. About cookies
Recommend free online SMS receiving platform in 2022 (domestic and foreign)
Skills of embedded C language program debugging and macro use
Desci: is decentralized science the new trend of Web3.0?
面试唯品会实习测试岗、抖音实习测试岗【真实投稿】