当前位置:网站首页>Zadig officially launched vs code plug-in, making local development more efficient
Zadig officially launched vs code plug-in, making local development more efficient
2022-06-28 22:16:00 【InfoQ】
- Zadig Environment check
- Microservice restart 、 Service image replacement 、 Service details 、Pod Real time log view 、 Log in to the service instance Pod
- Remote debugging of local applications 、 Configure the remote development environment
preparation
- System preparation :install Zadig v1.12.0 edition
- Project preparation : Reference resourcesHow to use GitHub + Zadig Achieve continuous product level delivery
Installing a plug-in
- open Visual Studio Code And enter the application market .
- Search in the application market 「Zadig Toolkit」, View details and install .

Configuration plug-ins
- Open the installed Zadig Toolkit plug-in unit .
- Click on “ Set up ” Enter the plug-in configuration page .


- Zadig Deployment address : Please follow the actual agreement , Complete URI, for example :http://zadig.com.
- Zadig API Token: Get into Zadig System , Click on
Account settingsPost acquisition , As shown in the figure below .


How to use
Remote debugging of local code
voting-demo- choice
voting-demoproject ->devEnvironmental Science , Click the icon on the right side of the environment to set Kube Config, You can select the configuration file in the file directory or enter its path manually and press enter .

- choice
voteservice , Click the debug button to enter the development mode .

- Select the local development code directory , In this casekoderover/zadig-> examples -> voting-app.


- Select the basic image used by the development environment
python:3.10.4-buster.


- Wait a moment until the development mode is started and executed , Enter the development container
dev, The contents of the selected directory will be automatically synchronized to the development container .


- Modify the local code and save : Change the background color of the first voting button .

- The changed code will be automatically synchronized to the remote end
devdevelopment environment . Enter... In the terminalvoteCatalog , Execute startup command .
pip install -r requirements.txt -i https://mirrors.aliyun.com/pypi/simple/
gunicorn app:app -b 0.0.0.0:80 --log-file - --access-logfile - --workers 4 --keep-alive 0

- visit vote Service address , The modification result is shown in the figure below .

- Click the red button , Decide to end the development mode , The container returns to normal .


View the environment and services
- Right click on the service to view the service details , In the service details page, you can view the service real-time log , Click the modify icon on the right side of the image to modify the service image .

- Right click on the service , Click on
Restart the serviceThe service can be restarted .

- Right click on the service , Click on
terminalYou can log in to the corresponding service Pod in .

Configure the remote development environment
- You need to modify the basic image of the development environment , Or modify the synchronized local code directory , You can click
Development mode configurationButton for quick setting .
[
{
"projectName": Project name ,
"envName": Name of the environment ,
"serviceName": The service name ,
"containerName": Development environment container name ,
"image": Basic image of development environment ,
"codeDir": Synchronize to the local directory in the development environment container
}
]
- Save the customized development mode configuration , Click on
Start development mode, It will quickly start the development mode based on the information in the configuration file .

边栏推荐
- 犹豫的根音
- Nc1033 palindrome substring of small a (ring, interval DP)
- Sword finger offer:[day 2 linked list (simple)] --- > print the linked list from end to end
- 时间序列预测系列文章总结(代码使用方法)
- Zadig + SonarQube,为开发过程安全保驾
- 爱数SMART 2022峰会开启,分享数据战略与建设数据驱动型组织方法论
- Go cryptobin common encryption and decryption Libraries
- Multinomial distribution (a discrete distribution)
- The example application of histogram in data visualization makes the public performance results clear at a glance
- 构建实战化防御体系之立体防渗透
猜你喜欢
![Sword finger offer:[day 1 stack and queue (simple)] --- > stack containing min function](/img/16/2edfc478a56e5b5e7299621ac778c2.jpg)
Sword finger offer:[day 1 stack and queue (simple)] --- > stack containing min function

Hardware development notes (VII): basic process of hardware development, making a USB to RS232 module (VI): creating 0603 package and associating principle graphic devices
![Sword finger offer:[day 2 linked list (simple)] --- > print the linked list from end to end](/img/d6/824985b74b27a1bee456c2cebbac26.jpg)
Sword finger offer:[day 2 linked list (simple)] --- > print the linked list from end to end

Zero foundation self-study SQL course | complete collection of date functions in SQL

Binomial distribution (a discrete distribution)

小样本利器2.文本对抗+半监督 FGSM & VAT & FGM代码实现
![[dynamic programming] p1018 linear DP: maximum product](/img/3f/b2f394f328c214937add7afa0568c3.jpg)
[dynamic programming] p1018 linear DP: maximum product

IPv6 comprehensive experiment

Get to know Alibaba cloud (Cloud Computing) - development history, technical architecture, region and availability zone!

城市大脑知识图谱构建及应用研究
随机推荐
Pat 1054 the dominiant color (20 points)
Ctrip will push the "3+2" working mode: 3 days a week on duty and 2 days of free choice of office space. Do you envy it?
After reading the list of global patent and chip buyers, I understand that high innovation can lead to high profits
【HackTheBox】 meow
运动App如何实现端侧后台保活,让运动记录更完整?
Akamai acquires linode
关于杠杆的思考
场景化接口开发利器,金蝶云苍穹新版OpenAPI引擎来了!
职业问诊 | 面试时被问到职业规划该怎么回答?
Lua源码剖析:一. lua变量类型可变特性在C代码中实现。
TCP三次握手四次挥手
Zadig 构建究竟何强大?一起来实践
阿海的忠告
Nc1033 palindrome substring of small a (ring, interval DP)
In order to control the risks, how to choose a franchise company?
Gross vs60 billion. Is food safety the biggest obstacle to Weilong's listing?
ROS 2 Humble Hawksbill 之 f1tenth gym
Get to know Alibaba cloud (Cloud Computing) - development history, technical architecture, region and availability zone!
Survival of beaver: post-90s female doctors and AI developers
Use of dynamic panels