Reliable Master安装
机器安装
git
Docker
Docker compose
yum install python-pip (检查是否安装python-pip
yum -y install epel-release 进行安装
执行成功之后,再次执行yum install python-pip
对安装好的pip进行升级 pip install --upgrade pip
pip install docker-compose.
安装成功后检查一下版本号
Docker安装请参见如下文档
docker安装
https://docs.docker.com/engine/installation/linux/centos/
Git
查看系统是否安装git
git --version
安装
yum install –y git
卸掉
yum remove git
创建macaca 文件夹
1) build reliable-docker-base
镜像:
执行: git clone https://github.com/reliablejs/reliable-docker-base --depth=1
进入到 reliable-docker-base 目录
docker build -t="reliable-docker-base" .
运行 docker images
,你可以看到 reliable-docker-base
镜像
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
restart:"unless-stopped"
再执行 make start,执行成功
http://xxx:8080
增加管理员用户
Slave 搭建:
npm install reliable-slave –g
指定已经部署的 Master IP 或 域名即完成部署并挂载:
reliable server -m <reliable-master:port> --verbose
执行后,刷新后,便可可到slave机器已经连接上