diff --git a/content/zh/post/traffic_millions/2020-03-27-VirtualBox.md b/content/zh/post/traffic_millions/2020-03-27-VirtualBox.md deleted file mode 100644 index a44d2b895d95ed0f458578eccc90ece1aac82c73..0000000000000000000000000000000000000000 --- a/content/zh/post/traffic_millions/2020-03-27-VirtualBox.md +++ /dev/null @@ -1,19 +0,0 @@ -+++ -title = "初试openGauss(二):windows下使用VirtualBox安装openGauss" -date = "2020-03-27" -tags = ["安装openGauss"] -archives = "2020-03" -author = "吴凡刚" -summary = "windows下使用VirtualBox安装openGauss虚拟机." -img = "/img/blog_01.png" -times = "2106" -+++ - -### 【背景】 -今天华为开发者大会上,openGauss开源社区发布了最新的LTS版本,手上只有一台windows机器,考虑使用VirtualBox安装openGauss虚拟机. - -### 【环境准备】 - -- Windows10 64位 -- Oracle VM VirtualBox 6.1.4 -- openGauss开源社区下载:[openGauss-20.03-LTS-x86_64-dvd.iso](https://repo.openGauss.org/openGauss-20.03-LTS/ISO/x86_64/openGauss-20.03-LTS-x86_64-dvd.iso) (X86) diff --git a/content/zh/post/traffic_millions/2020-03-27-qemu.md b/content/zh/post/traffic_millions/2020-03-27-qemu.md deleted file mode 100644 index 0f720e501a73b98137db63804811a603ffcdf7cb..0000000000000000000000000000000000000000 --- a/content/zh/post/traffic_millions/2020-03-27-qemu.md +++ /dev/null @@ -1,18 +0,0 @@ -+++ -title = "初试openGauss(一):windows下使用qemu安装openGauss" -date = "2020-03-09" -tages = ["安装openGauss"] -archives = "2020-03" -author = "吴凡刚" -summary = "windows下使用qemu安装openGauss虚拟机" -img = "/img/blog_01.png" -times = "2106" -+++ - -### 【背景】 -今天华为开发者大会上,openGauss开源社区发布了最新的LTS版本,本着第一个吃螃蟹的原则,赶紧下载下来玩一玩;由于手上只有一台windows机器,考虑使用qemu安装openGauss虚拟机; - -### 【环境准备】 -- Windows10 64位 -- openGauss开源社区下载qcow2镜像:[openGauss-20.03-LTS.aarch64.qcow2.xz](http://repo.openGauss.org/openGauss-20.03-LTS/virtual_machine_img/aarch64/openGauss-20.03-LTS.aarch64.qcow2.xz) (aarch64) - diff --git a/content/zh/post/xingchen/2020-05-30-start1.md b/content/zh/post/xingchen/2020-05-30-start1.md new file mode 100644 index 0000000000000000000000000000000000000000..33f39ec7f8a120e6ee951299c4cb5f78aaf10a43 --- /dev/null +++ b/content/zh/post/xingchen/2020-05-30-start1.md @@ -0,0 +1,112 @@ ++++ +title = "openGauss社区入门(git使用基础)" +date = "2020-05-30" +tags = ["openGauss社区开发入门"] +archives = "2020-05" +author = "xingchen" +summary = "openGauss社区开发入门" +img = "/zh/post/xingchen/title/title.png" +times = "17:30" ++++ + +### 前言 + +这两天参与了社区建设的一些事情,总结下用到的一些基本的操作放到blog里面供大家参考,有不对的地方还望指正。 + +Git基本使用 + + +### Git安装和配置 + +--- + +1. Git下载 + +可以到git官网下载git客户端,[git下载地址](https://git-scm.com/downloads)。里面附有各个操作系统下详细的安装命令,按照命令安装即可。 + +2. 配置用户和邮箱 + +window下打开gitbash窗口,设置用户名和邮箱。 +``` +git config --global user.name +git config --global user.email +``` +配置完成后,通过 `git config --list` 查看 +![](../images/configlist.png) + +3. 生成SSH公钥 + +gitbash窗口输入命令: +``` +ssh-keygen -t rsa -C +``` +按照提示按三次回车,生成ssh公钥。 +gitbash窗口使用如下命令查看生成的ssh公钥: +``` +cat ~/.ssh/id_rsa.pub +``` +复制公钥,并在gitee网站导入公钥。 +![](../images/catssh.png) + +4. 导入SSH公钥 + +登录到gitee网站,进入**个人-设置-SSH公钥**,复制公钥并粘贴到界面上公钥的文本框里面,点击确定按钮来添加公钥。 +![](../images/sshkey.png) + +至此,git配置完成,可以下载开发以及提交代码了。 + +### 下载与提交代码 + +--- + +以opengauss/website工程为例,进行一次修改提交。 + +1. Fork仓库 + +普遍的流程,开发者先从主干仓库Fork出个人仓库,基于个人仓库进行开发。完成后提交代码到自己的仓库里面,再从自己仓库提交Pull Request到主干仓库。 + +opengauss/website工程下面点击Fork按钮,Fork到自己的仓库里面。 +![](../images/fork.png) + +2. 下载代码 + +复制需要下载的工程地址,在gitbash上使用`git clone`命令下载代码 + +``` +git clone +``` + +![](../images/gitclone.png) + +git clone命令可以添加参数: +``` +git clone -b +``` + +`git clone`默认下载master分支代码,命令中添加`-b branch`参数即可下载指定分支代码。 +``参数不添加是工程默认名称,添加后会把下载到本地的文件夹名称改为指定名称。 + +3. 提交代码 + +本次我们在website工程中添加一个test.txt文件。 + +```git status``` -- 查看修改的文件 + +![](../images/gitstatus.png) + +```git add .``` -- 将所有修改的文件添加到git的缓存区 + +![](../images/gitadd.png) + +```git commit -m "Add a testing file"``` -- 生成一个提交 + +```git push origin master``` -- 提交修改到自己的仓库里面 + +4. 提Pull Request + +合入到自己的仓库后,在页面创建**Pull Request**,提交PR到主干仓库 + +![](../images/pr1.png) +![](../images/pr2.png) + + diff --git a/content/zh/post/xingchen/2020-06-01-start2.md b/content/zh/post/xingchen/2020-06-01-start2.md new file mode 100644 index 0000000000000000000000000000000000000000..62f6b1a1d8031dff3e984935a2e752cf244accde --- /dev/null +++ b/content/zh/post/xingchen/2020-06-01-start2.md @@ -0,0 +1,45 @@ ++++ +title = "openGauss社区入门(操作须知)" +date = "2020-06-01" +tags = ["openGauss社区开发入门(操作须知)"] +archives = "2020-06-01" +author = "xingchen" +summary = "openGauss社区开发入门" +img = "/zh/post/xingchen/title/title.png" +times = "19:30" ++++ + + +### 签署cla协议(贡献者许可协议) + +第一次提交Pull Request后,会有一个`opengauss-cla/no`的标签,提示需要去签署cla协议,否则无法合入代码。 + +![](../images/cla.png) + +请在打开下面网站进行签署协议: + +英文: https://opengauss.org/en/cla.html + +中文: https://opengauss.org/zh/cla.html + +签署后,在文本编辑框输入 +`/check-cla` +即可刷新签署状态。已经签署后,后续的pull request则无需做该操作。 + +### 通过回复命令来触发操作 + +openGauss社区建议每个开发人员在Pull Request或者issue下面的文本编辑框里面通过输入命令进行对应的操作。 +详细命令参见: + +英文:https://gitee.com/opengauss/community/blob/master/en/command.md + +中文:https://gitee.com/opengauss/community/blob/master/zh/command.md + +示例 + +> 1.上一步的签署完cla再通过输入`/check-cla`命令来刷新签署状态。 + +> 2.输入`/kind bug`,标注这个合入是一个bug问题,本次合入会打上bug标签。 +![](../images/kindbug.png) + +> 3.如果要关闭掉该Pull Request,输入 `/close`,本次提交即被关闭掉。 diff --git a/content/zh/post/xingchen/images/catssh.png b/content/zh/post/xingchen/images/catssh.png new file mode 100644 index 0000000000000000000000000000000000000000..337a835e0ab432f87ac4e2e227e55ed633ada277 Binary files /dev/null and b/content/zh/post/xingchen/images/catssh.png differ diff --git a/content/zh/post/xingchen/images/cla.png b/content/zh/post/xingchen/images/cla.png new file mode 100644 index 0000000000000000000000000000000000000000..65409ad7ffca6512294e83d03940354dec75216e Binary files /dev/null and b/content/zh/post/xingchen/images/cla.png differ diff --git a/content/zh/post/xingchen/images/configlist.png b/content/zh/post/xingchen/images/configlist.png new file mode 100644 index 0000000000000000000000000000000000000000..182fd5e310cb351f3a466763138301bfb464cc07 Binary files /dev/null and b/content/zh/post/xingchen/images/configlist.png differ diff --git a/content/zh/post/xingchen/images/downcode.png b/content/zh/post/xingchen/images/downcode.png new file mode 100644 index 0000000000000000000000000000000000000000..fb00c336007e9989995fa945f470cf96bb588041 Binary files /dev/null and b/content/zh/post/xingchen/images/downcode.png differ diff --git a/content/zh/post/xingchen/images/fork.png b/content/zh/post/xingchen/images/fork.png new file mode 100644 index 0000000000000000000000000000000000000000..38e41444adcd48b2dd12771abd5c3610cd94b341 Binary files /dev/null and b/content/zh/post/xingchen/images/fork.png differ diff --git a/content/zh/post/xingchen/images/gitadd.png b/content/zh/post/xingchen/images/gitadd.png new file mode 100644 index 0000000000000000000000000000000000000000..e30c042f7f961705d409e821fc7df1c8c955d710 Binary files /dev/null and b/content/zh/post/xingchen/images/gitadd.png differ diff --git a/content/zh/post/xingchen/images/gitclone.png b/content/zh/post/xingchen/images/gitclone.png new file mode 100644 index 0000000000000000000000000000000000000000..cd00fd6ec00da74eeb71c192053d688c35274460 Binary files /dev/null and b/content/zh/post/xingchen/images/gitclone.png differ diff --git a/content/zh/post/xingchen/images/gitstatus.png b/content/zh/post/xingchen/images/gitstatus.png new file mode 100644 index 0000000000000000000000000000000000000000..7ca63702249beca305a66336e23f2af13889a652 Binary files /dev/null and b/content/zh/post/xingchen/images/gitstatus.png differ diff --git a/content/zh/post/xingchen/images/kindbug.png b/content/zh/post/xingchen/images/kindbug.png new file mode 100644 index 0000000000000000000000000000000000000000..4ccb3102b27882e3f5f33024128f2922342a2e15 Binary files /dev/null and b/content/zh/post/xingchen/images/kindbug.png differ diff --git a/content/zh/post/xingchen/images/pr1.png b/content/zh/post/xingchen/images/pr1.png new file mode 100644 index 0000000000000000000000000000000000000000..b13d32609fe53f1b7bd0c336d27bffb1b30ee2d3 Binary files /dev/null and b/content/zh/post/xingchen/images/pr1.png differ diff --git a/content/zh/post/xingchen/images/pr2.png b/content/zh/post/xingchen/images/pr2.png new file mode 100644 index 0000000000000000000000000000000000000000..0d3f3df37b8f1e112d64d34e2587ffd7444e68c2 Binary files /dev/null and b/content/zh/post/xingchen/images/pr2.png differ diff --git a/content/zh/post/xingchen/images/sshkey.png b/content/zh/post/xingchen/images/sshkey.png new file mode 100644 index 0000000000000000000000000000000000000000..8b679d45f0394fb98a7df458bad1806d4f672650 Binary files /dev/null and b/content/zh/post/xingchen/images/sshkey.png differ diff --git a/content/zh/post/xingchen/title/title.jpg b/content/zh/post/xingchen/title/title.jpg new file mode 100644 index 0000000000000000000000000000000000000000..eacc14415983b4bf79879a66ac0ce7622d785367 Binary files /dev/null and b/content/zh/post/xingchen/title/title.jpg differ