当前位置:网站首页>[cloud native] Devops (I): introduction to Devops and use of code tool
[cloud native] Devops (I): introduction to Devops and use of code tool
2022-07-07 09:19:00 【It's dream】
Contents of this article :
Preface :
The present Cloud native is popular all over the network , Cloud Nativity makes full use of cloud computing elasticity 、 agile 、 Resource pooling and service-oriented features , Change the design of Cloud Applications 、 Development 、 Deployment and operation mode , It has greatly facilitated us , This article will Take you into the cloud native world , Uncover its mystery .
Introductory notes : This paradise never lacks genius , Hard work is your final ticket !
Last , May we all shine where we can't see , Let's make progress together
DevOps
One 、DevOps Introduce
Software development starts with two teams :
- The development plan consists of The development team Design from scratch and build the overall system . The system needs to be updated iteratively .
- Operation and maintenance team Will develop the team's Code Deploy online after testing . I hope the system can operate stably and safely .
It seems that two teams with different goals need to cooperate to complete the development of a software .
Plan and complete in the development team coding after , It needs to be provided to the operation and maintenance team .
The operation and maintenance team feeds back the problems that need to be repaired to the development team BUG And some tasks that need to be reworked .
At this time, the development team needs to often wait for the feedback of the operation and maintenance team . This undoubtedly prolongs the event and delays the whole software development cycle .
There will be a way , While the development team waits , Move the development team to the next project . Wait for the O & M team to provide feedback on the previous code .
But this means that a complete project needs a longer cycle to develop the final code .
Based on the current situation of Internet , More advocate agile development , This results in faster iterations of the project , However, due to the communication problems between the development team and the operation and maintenance team , It will lead to a high time cost for the new version to go online . This goes against the original purpose of agile development .
So if the development team and operation and maintenance team are integrated into one team , How to deal with a set of software together ? This is called DevOps.
DevOps, Literally means Development &Operations Abbreviation , That's development & Operation and maintenance .
Although the literal meaning only involves the development team and operation and maintenance team , Actually QA The test team is also involved .
You can see DevOps The symbol of is similar to the symbol of infinity
DevOps |
---|
This shows that DevOps It's a process of improving efficiency and working continuously
This shows that DevOps It's a process of improving efficiency and working continuously
DevOps In a way that allows companies to respond more quickly to updates and market developments , Development can quickly deliver , The deployment is also more stable .
The core is simplify Dev and Ops Processes between teams , Make the overall software development process faster .
The overall software development process includes :
- PLAN: The development team makes the development plan according to the customer's goals
- CODE: according to PLAN Start the coding process , You need to store different versions of code in a library .
- BUILD: After coding , You need to build and run the code .
- TEST: After successfully building the project , You need to test whether the code exists BUG Or error .
- DEPLOY: After manual and automated testing of the code , Confirm that the code is ready to be deployed and handed over to the operation and maintenance team .
- OPERATE: The operation and maintenance team deploys the code into the production environment .
- MONITOR: After the project is deployed online , Need continuous monitoring of products .
- INTEGRATE: Then send the feedback received in the monitoring phase back to PLAN Stage , The whole iterative process is DevOps At the heart of , That is to say, to continue to integrate into 、 Continuous deployment .
In order to ensure that the overall process can be completed efficiently , There are common tools at all stages , Here's the picture :
Software development process & It's about tools |
---|
You can finally give DevOps Next definition :DevOps The emphasis is on how to achieve software life cycle management through automated tool collaboration and communication between effective organization teams , So faster 、 More frequent delivery of more stable software .
Automated tool collaboration and communication to complete software lifecycle management
Two 、Code Stage tools
stay code Stage , We need to store different versions of the code in a repository , A common version control tool is SVN perhaps Git, Here we use Git As a version control tool ,GitLab As a remote warehouse .
2.1 Git install
https://git-scm.com/( Fool installation )
2.2 GitLab install
Prepare the server separately , use Docker install
see GitLab Mirror image
docker search gitlab
Pull GitLab Mirror image
docker pull gitlab/gitlab-ce
Get ready docker-compose.yml file
version: '3.1' services: gitlab: image: 'gitlab/gitlab-ce:latest' container_name: gitlab restart: always environment: GITLAB_OMNIBUS_CONFIG: | external_url 'http://192.168.11.11:8929' gitlab_rails['gitlab_shell_ssh_port'] = 2224 ports: - '8929:8929' - '2224:2224' volumes: - './config:/etc/gitlab' - './logs:/var/log/gitlab' - './data:/var/opt/gitlab'
Start the container ( I need to wait a minute ……)
docker-compose up -d
visit GitLab home page
home page
see root User initial password
docker exec -it gitlab cat /etc/gitlab/initial_root_password
Initial password
Sign in root user
After logging in successfully, jump to the page
You need to change your password after logging in for the first time
Change Password
When it's done , It's like Gitee、GitHub The use of .
【 A series of good articles are recommended 】
Python Web Develop a :Web Introduction to development
Python Web Development two :Django Installation and operation of
Python Web Development ( 3、 ... and ):HTTP Requested url route
Welcome to subscribe to this column : Zero basis to learn Python The series of courses is aimed at Python introduction & A full set of advanced courses , ad locum , I will be one One update Python Basic grammar 、Python Reptiles 、Web Development 、 Django frame 、Flask Framework and AI related knowledge , Help you become Python A great god , If you like it, just collect and subscribe ~
All right. , That's all I want to share with you today , See you next time !
If you like , Don't be stingy with your one key triple connection ~
️️ ️ Business cooperation | Communication and learning | Fan benefits |Python A complete set of information ️ ️ ️ Welcome to contact ~
边栏推荐
- Unity shader beginner's Essentials (I) -- basic lighting notes
- Port occupation troubleshooting
- Jenkins task grouping
- Confitest of fixture py
- Yapi test plug-in -- cross request
- LeetCode每日一题(2316. Count Unreachable Pairs of Nodes in an Undirected Graph)
- What is the use of PMP certificate?
- 正则匹配以XXX开头的,XXX结束的
- 【ChaosBlade:节点磁盘填充、杀节点上指定进程、挂起节点上指定进程】
- Sublime Text4 download the view in bower and set the shortcut key
猜你喜欢
Pytest+request+allure+excel interface automatic construction from 0 to 1 [five nails / flying Book notice]
MySQL master-slave delay solution
2021 year end summary
Zen - batch import test cases
Do you have any certificates with high gold content?
Error: selenium common. exceptions. WebDriverException: Messag‘geckodriver‘ execute
H3C vxlan configuration
【SVN】SVN是什么?怎么使用?
外部中断实现按键实验
Led analog and digital dimming
随机推荐
Interface test API case, data and interface separation
Selenium mouse sliding operation event
Systick tick timer
[chaosblade: node CPU load, node network delay, node network packet loss, node domain name access exception]
JWT certification used in DRF
Cesium does not support 4490 problem solution and cesium modified source code packaging scheme
Pytest+request+allure+excel interface automatic construction from 0 to 1 [five nails / flying Book notice]
【SVN】SVN是什么?怎么使用?
Simulation volume leetcode [general] 1706 Where does the ball meet
Do you have any certificates with high gold content?
How can I apply for a PMP certificate?
Unityshader introduction essentials personal summary -- Basic chapter (I)
Unittest simple project
Mysql数据库-锁-学习笔记
Port multiplexing and re imaging
C语言指针(中篇)
PMP experience learning and sharing process
What is the use of PMP certificate?
Postman interface debugging method
Postman setting environment variables