51Testing软件测试论坛

标题: Reliable Master持续集成环境搭建Centos [打印本页]

作者: Mario洁    时间: 2018-7-6 14:22
标题: Reliable Master持续集成环境搭建Centos
本帖最后由 Mario洁 于 2018-7-6 14:24 编辑

Reliable Master安装
机器安装
git
Docker
Docker compose
yum install python-pip (检查是否安装python-pip
[attach]117008[/attach]
yum -y install epel-release   进行安装
[attach]117009[/attach]
执行成功之后,再次执行yum install python-pip
[attach]117010[/attach]
对安装好的pip进行升级 pip install --upgrade pip
[attach]117011[/attach]
  • 进行docker-compose  安装
pip install docker-compose.
[attach]117012[/attach]
安装成功后检查一下版本号
[attach]117013[/attach]
Docker安装请参见如下文档
docker安装

Git
查看系统是否安装git
git  --version
[attach]117014[/attach]
安装
yum install –y git
[attach]117015[/attach]
卸掉
yum remove  git

创建macaca 文件夹
1) build reliable-docker-base 镜像:
执行: git clone https://github.com/reliablejs/reliable-docker-base --depth=1
[attach]117016[/attach]
进入到 reliable-docker-base 目录

docker build -t="reliable-docker-base" .
[attach]117017[/attach]
运行
docker images
,你可以看到
reliable-docker-base
镜像
[attach]117018[/attach]
2) build reliable-master 镜像:
$ git clone https://github.com/reliablejs/reliable-master --depth=1$ cd reliable-master$ docker build -t="reliable-master" .

3) 使用 docker-compose 启动:
$ git clone https://github.com/reliablejs/reliable-macaca-docker-compose.git --depth=1$ cd reliable-macaca-docker-compose$ make start
[attach]117019[/attach]
restart:"unless-stopped"
[attach]117020[/attach]
再执行 make start,执行成功
[attach]117021[/attach]
[attach]117022[/attach]
增加管理员用户
[attach]117024[/attach]
Slave 搭建:
npm install reliable-slave –g
指定已经部署的 Master IP 或 域名即完成部署并挂载:
reliable server -m <reliable-master:port> --verbose
执行后,刷新后,便可可到slave机器已经连接上
[attach]117025[/attach]









欢迎光临 51Testing软件测试论坛 (http://bbs.51testing.com/) Powered by Discuz! X3.2