ideas of cloud test

This commit is contained in:
light 2018-01-15 19:31:35 +08:00
parent c76e301127
commit 2d2f35d509
5 changed files with 61 additions and 1 deletions

24
autotest/idea.md Normal file
View File

@ -0,0 +1,24 @@
# 云测试平台构建 想法
## 功能需求
- 代码托管和版本管理
- 角色管理
- 项目流程管理
- 测试用例提交和管理
- 测试环境的搭建和管理
- 测试环境的检查,监控和报警
- 测试代码的编译和测试构建
- 测试代码的静态检查和报警
- 测试用例的分发和执行
- 测试结果的保存与管理
- 测试报告的生成
- 性能监控和报警
## 系统结构设计
![cloud-test-architecture](../static/img/cloud-test-architecture.png)
## 用户使用流程
![functional-flow](../static/img/functional-flow.png)

33
docker/docker.md Normal file
View File

@ -0,0 +1,33 @@
# ubuntu 安装 docker-ce
## step 1: 安装必要的一些系统工具
sudo apt-get update
sudo apt-get -y install apt-transport-https ca-certificates curl software-properties-common
## step 2: 安装GPG证书
curl -fsSL http://mirrors.aliyun.com/docker-ce/linux/ubuntu/gpg | sudo apt-key add -
## Step 3: 写入软件源信息
sudo add-apt-repository "deb [arch=amd64] http://mirrors.aliyun.com/docker-ce/linux/ubuntu $(lsb_release -cs) stable"
## Step 4: 更新并安装 Docker-CE
sudo apt-get -y update
sudo apt-get -y install docker-ce
## 加速
``` bash
sudo mkdir -p /etc/docker
sudo tee /etc/docker/daemon.json <<-'EOF'
{
"registry-mirrors": ["https://so4p5nnk.mirror.aliyuncs.com"]
}
EOF
sudo systemctl daemon-reload
sudo systemctl restart docker
```

Binary file not shown.

After

Width:  |  Height:  |  Size: 52 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 95 KiB

View File

@ -18,7 +18,7 @@
## 思路
![iptables_examples_network_topology](../static/img/iptables_frame.png)
![iptables_frame](../static/img/iptables_frame.png)
如图2所示端口转发走的是下发A路利用nat表中prerouting做dnat用postrouting做snat
@ -42,6 +42,9 @@ packet out|转发包|10.138.108.103:X|192.168.1.1:8001
# net.ipv4.ipv4_forward=1
```
使改动生效
> sudo sysctl -p
## 脚本
``` bash