diff --git a/autotest/idea.md b/autotest/idea.md new file mode 100644 index 0000000..d54e809 --- /dev/null +++ b/autotest/idea.md @@ -0,0 +1,24 @@ +# 云测试平台构建 想法 + +## 功能需求 + +- 代码托管和版本管理 +- 角色管理 +- 项目流程管理 +- 测试用例提交和管理 +- 测试环境的搭建和管理 +- 测试环境的检查,监控和报警 +- 测试代码的编译和测试构建 +- 测试代码的静态检查和报警 +- 测试用例的分发和执行 +- 测试结果的保存与管理 +- 测试报告的生成 +- 性能监控和报警 + +## 系统结构设计 + +![cloud-test-architecture](../static/img/cloud-test-architecture.png) + +## 用户使用流程 + +![functional-flow](../static/img/functional-flow.png) \ No newline at end of file diff --git a/docker/docker.md b/docker/docker.md new file mode 100644 index 0000000..2f69c76 --- /dev/null +++ b/docker/docker.md @@ -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 +``` diff --git a/static/img/cloud-test-architecture.png b/static/img/cloud-test-architecture.png new file mode 100644 index 0000000..40c3006 Binary files /dev/null and b/static/img/cloud-test-architecture.png differ diff --git a/static/img/functional-flow.png b/static/img/functional-flow.png new file mode 100644 index 0000000..175876c Binary files /dev/null and b/static/img/functional-flow.png differ diff --git a/ubuntu/iptables设置端口转发.md b/ubuntu/iptables设置端口转发.md index 3c6f696..1ca7fd6 100755 --- a/ubuntu/iptables设置端口转发.md +++ b/ubuntu/iptables设置端口转发.md @@ -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