首页 » 技术分享 » Qihoo360/wayne 部署教程

Qihoo360/wayne 部署教程

 

系统

[root@master wayne]# cat /etc/redhat-release 
CentOS Linux release 7.5.1804 (Core) 

部署步骤

安装docker

请参考安装docker 17.03.2.ce教程
docker 版本,安装方法是一样的

[root@master tmp]# docker version 
Client:
 Version:           18.09.0
 API version:       1.39
 Go version:        go1.10.4
 Git commit:        4d60db4
 Built:             Wed Nov  7 00:48:22 2018
 OS/Arch:           linux/amd64
 Experimental:      false

Server: Docker Engine - Community
 Engine:
  Version:          18.09.0
  API version:      1.39 (minimum version 1.12)
  Go version:       go1.10.4
  Git commit:       4d60db4
  Built:            Wed Nov  7 00:19:08 2018
  OS/Arch:          linux/amd64
  Experimental:     false

安装docker-compose

yum install epel-release
yum install python-pip -y
pip install pip --upgrade
[root@master tmp]# docker-compose version 
docker-compose version 1.23.1, build b02f130
docker-py version: 3.5.1
CPython version: 2.7.5
OpenSSL version: OpenSSL 1.0.2k-fips  26 Jan 2017

2.获取代码

git clone https://github.com/Qihoo360/wayne.git
cd wayne;git submodule update --init --recursive

启动mysql

# cd wayne; docker-compose up -d mysql

Starting wayne_mysql_1_780a202aa4f5 ... done
Attaching to wayne_mysql_1_780a202aa4f5
mysql_1_780a202aa4f5 | Initializing database
mysql_1_780a202aa4f5 | 2018-11-19 05:24:55 0 [Warning] TIMESTAMP with implicit DEFAULT value is deprecated. Please use --explicit_defaults_for_timestamp server option (see documentation for more details).
mysql_1_780a202aa4f5 | 2018-11-19 05:24:55 0 [Note] Ignoring --secure-file-priv value as server is running with --bootstrap.
mysql_1_780a202aa4f5 | 2018-11-19 05:24:55 0 [Note] /usr/sbin/mysqld (mysqld 5.6.41) starting as process 37 ...
mysql_1_780a202aa4f5 | 2018-11-19 05:24:55 37 [Note] InnoDB: Using atomics to ref count buffer pool pages
mysql_1_780a202aa4f5 | 2018-11-19 05:24:55 37 [Note] InnoDB: The InnoDB memory heap is disabled
mysql_1_780a202aa4f5 | 2018-11-19 05:24:55 37 [Note] InnoDB: Mutexes and rw_locks use GCC atomic builtins
mysql_1_780a202aa4f5 | 2018-11-19 05:24:55 37 [Note] InnoDB: Memory barrier is not used
mysql_1_780a202aa4f5 | 2018-11-19 05:24:55 37 [Note] InnoDB: Compressed tables use zlib 1.2.3
mysql_1_780a202aa4f5 | 2018-11-19 05:24:55 37 [Note] InnoDB: Using Linux native AIO

创建数据库配置文件

[root@master tmp]# cat /tmp/dev.conf
DBName = wayne
# MySQL address,如果MySQL是通过docker-compose启动的,
# Mac OS 下无法直接通过127.0.0.1访问,请修改为实际IP 
DBTns = tcp(10.39.47.63:3306)
DBUser = root
DBPasswd = root

启动wayne服务

$ docker run -d  -e GOPATH=/go -v /tmp/dev.conf:/opt/wayne/conf/dev.conf -p 8080:8080 360cloud/wayne /opt/wayne/backend apiserver

启动结果
360

登录

您可以从通过 http://ip:8080/admin 访问本地 Wayne, 默认管理员账号admin:admin。

120

集群配置
进入后台
11

12

添加例子

在这里插入图片描述

111

111

搭建完成

参考
wayne
Wayne-admin-cluster
wiki

转载自原文链接, 如需删除请联系管理员。

原文链接:Qihoo360/wayne 部署教程,转载请注明来源!

0