Skip to content

Commit 23bb11e

Browse files
authored
Merge pull request #3 from OpenNetLab/wangyf2001-patch-2
Created a guide to using Azure and Github
2 parents ff01d7b + 58348f0 commit 23bb11e

14 files changed

+100
-2
lines changed

Github-Quick-Start.md

+46
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
# Github Quick Start
2+
## 1.Code Download
3+
> git clone
4+
5+
Add the link obtained from the corresponding project to copy the project locally.
6+
## 2.Default Agreement
7+
If the command provided in the documentation does not explicitly specify a directory, it means that the command is executed in the directory of the downloaded folder.
8+
## 3.User Settings
9+
The download of code in Github does not require authentication, but the upload of code requires authentication, which requires some local configuration. You can configure your username and email address with the following command.
10+
> git config --global user.name YourUserName
11+
> git config --global user.email YourEmail
12+
13+
Generate your own key
14+
>ssh-keygen -t rsa -C YourEmail
15+
16+
Keep pressing enter and the key will be saved in the default directory.
17+
View Key
18+
> cd ~/.ssh/
19+
> vim id_rsa.pub
20+
21+
Copy the key to the corresponding project on Github to complete the authentication.
22+
![](./images/Github/SSH.jpg)
23+
24+
25+
## 4.Code Upload
26+
### Code Modification
27+
Generally the cloned code will go to the master branch by default, we need to create a separate branch and make changes to the code on our own branch.
28+
> git branch your-Alias/filename
29+
> git checkout your-Alias/filename
30+
31+
### Code Submission
32+
After making changes on the cloned document, you can start the code commit process.
33+
Add the changes to the staging area
34+
> git add yourfilename
35+
36+
Adding cache contents to the local repository.
37+
> git commit -m ‘Your File Note’
38+
39+
Submitting code to the cloud repository.
40+
> git push --set-upstream origin your-Alias/filename
41+
42+
# Some good learning documents of Github
43+
[Github配置及使用](http://t.zoukankan.com/jiaxblog-p-9574441.html)
44+
[Github文档](https://docs.github.com/cn)
45+
[Github docs](https://docs.github.com/en)
46+

How-To-Create-Disk-In-Azure.md

+51
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
# How To Create Disk In Azure
2+
3+
Step 1, select the virtual machine that you want to add in the resource list
4+
5+
![image](./images/Azure/Resources.png)
6+
7+
Step 2, click on the Disk options
8+
9+
![](./images/Azure/Disks.png)
10+
11+
Step 3, select a new hard disk in the data disk
12+
13+
![](./images/Azure/Data-disks.png)
14+
15+
Step 4, fill in the disk size and other content according to your own needs
16+
17+
![](./images/Azure/Disks-setting.png)
18+
19+
Step 5, click Save
20+
21+
![](./images/Azure/Save-setting.png)
22+
23+
Step 6, add it successfully
24+
25+
![](./images/Azure/Right-feedback.png)
26+
27+
Step 7, formatting the disk
28+
29+
Use the fdisk-l command to view the disk
30+
31+
![](./images/Azure/View-the-disk.png)
32+
33+
Step 8, format the hard disk file system
34+
35+
> mkfs -t ext4 /dev/sdc
36+
37+
Step 9, mount the hard drive
38+
39+
Create a directory that you want to mount
40+
41+
> mkdir /onldata
42+
43+
Mount the hard disk to the folder
44+
45+
> mount /dev/sdc /onldata
46+
47+
Step 10, boot on automatic mount
48+
49+
> vim /etc/fstab
50+
51+
![](./images/Azure/Auto-mounting.png)

README.md

+3-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
# OpenNetLab-DevOps-Doc
2-
2+
This article provides an introductory route to some of the technologies needed to develop the opennetlab platform and related derivatives.
33
## Github HOW-TO
4-
4+
[The way to start with Github](./Github-Quick-Start.md)
55
## Azure HOW-TO
6+
[The way to creat disk in Azure](./How-to-creat-disk-in-Azure.md)
67

Right-feedback.png

44.4 KB
Loading

images/Azure/Auto-mounting.png

8.56 KB
Loading

images/Azure/Data disks.png

42.5 KB
Loading

images/Azure/Data-disks.png

42.5 KB
Loading

images/Azure/Disks-setting.png

21.1 KB
Loading

images/Azure/Disks.png

39.4 KB
Loading

images/Azure/Resources.png

34.6 KB
Loading

images/Azure/Right-feedback.png

44.4 KB
Loading

images/Azure/Save-setting.png

53 KB
Loading

images/Azure/View-the-disk.png

10.5 KB
Loading

images/Github/SSH.jpg

17.2 KB
Loading

0 commit comments

Comments
 (0)