ReportPortal 在python下的应用介绍之—-ReportPortal部署

在上一篇文章中,我们介绍了报表门户的功能和demo的使用。

[En]

In the previous article, we introduced the functions of reportportal and the use of demo.

在本文中,让我们实际部署我们自己的系统。

[En]

In this article, let’s actually deploy our own system.

一、部署介绍

从官网上我们仍然可以看到,部署该系统的方式有好几种。请参阅以下文档:

[En]

From the official website, we can still see that there are several ways to deploy the system. See the following documents:

1、通过docker部署:https://reportportal.io/docs/Deploy-with-Docker

2、通过k8s部署:https://reportportal.io/docs/Deploy-with-Kubernetes

3、传统部署:https://reportportal.io/docs/Deploy-ReportPortal-without

在本章中,我们将以第一种方式部署它。

[En]

In this chapter, we will deploy it in the first way.

二、准备

要部署带坞站的系统,至少我们需要有坞站。因此,如果你想在Windows上安装docker,你必须安装64位Win10并打开虚拟化。如何检查以查看是否开启了虚拟化?如下所示

[En]

To deploy the system with docker, at least we need to have docker. So if you want to install docker on windows, you must have 64-bit win10 and turn on virtualization. How to check to see if virtualization is on? As follows

任务管理器-CPU

[En]

Task Manager-CPU

ReportPortal 在python下的应用介绍之----ReportPortal部署

而是为了避免停靠在窗口上的麻烦。我将在Windows上部署Linux虚拟机以报告门户。

[En]

But to avoid the trouble of dock on windows. I will deploy the linux virtual machine on windows to reportportal.

此处不介绍如何安装虚拟机和安装Centos。重要的是要注意到这一点。最低配置必须为2核4G。

[En]

How to install a virtual machine and install centos is not described here. It’s important to note that. The minimum configuration must be 2-core 4G.

三、安装

1.安装Docker

管理员登录到centos并输入以下命令

[En]

The administrator logs in to centos and enter the following command

yum install -y yum-utils
yum-config-manager --add-repo https://download.docker.com/linux/centos/docker-ce.repo
yum-config-manager --enable docker-ce-nightly

安装坞站

[En]

Install docker

yum install docker-ce docker-ce-cli containerd.io

开始对接

[En]

Start docker

systemctl start docker

替换源

[En]

Replace sourc

创建新文件/etc/docker/daemon.json

[En]

Create a new file / etc/docker/daemon.json

{
    "registry-mirrors": ["https://registry.docker-cn.com"]
}

重新启动坞站

[En]

Restart docker

systemctl daemon-reload
systemctl restart docker.service

2.安装docker compose

下载文件

[En]

Download a file

curl -L "https://github.com/docker/compose/releases/download/1.29.2/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose

权力的更迭

[En]

Change of authority

chmod +x /usr/local/bin/docker-compose

检查安装是否成功

[En]

Check to see if the installation is successful

docker-compose --version

3. 下载reportportal的yml文件

根据管网,由于外墙的原因,它不能下来。

[En]

According to the pipe network, it can’t go down because of the foreign wall.

curl -LO https://raw.githubusercontent.com/reportportal/reportportal/master/docker-compose.yml

如果有下不了的可以见我上传的附件下载 https://files.cnblogs.com/files/landhu/docker-compose.zip?t=1645594094。因为博客园无法上传yml文件,所以打包为zip文件。下载后,需要解压后上传至服务器。

4.设置elasticSearch配置

csharp;gutter:true; mkdir -p data/elasticsearch chmod 777 data/elasticsearch chgrp 1000 data/elasticsearch</p> <pre><code> ### 5.安装 </code></pre> <p>docker-compose -p reportportal up -d --force-recreate</p> <pre><code> 加载过程坎坷,可能会因为网络原因找不到。在这种情况下,你可以在互联网上学学。以后再剪吧。<details><summary>[En]</summary>The process of loading is bumpy and may not be found due to network reasons. In this case, you can kexue on the Internet. Cut it later.</details> ## 四、验证 登录地址<details><summary>[En]</summary>Login address</details> http://虚拟机IP:8080 默认提供登录用户名和密码:<details><summary>[En]</summary>Login username and password are available by default:</details> </code></pre> <p>Default User: default\1q2w3e Administrator: superadmin\erebus

参考文限

https://reportportal.io/docs/Deploy-with-Docker

Original: https://www.cnblogs.com/landhu/p/15926547.html
Author: Believer007
Title: ReportPortal 在python下的应用介绍之—-ReportPortal部署

原创文章受到原创版权保护。转载请注明出处:https://www.johngo689.com/6565/

转载文章受原作者版权保护。转载请注明原作者出处!

(0)

大家都在看

免费咨询
免费咨询
扫码关注
扫码关注
联系站长

站长Johngo!

大数据和算法重度研究者!

持续产出大数据、算法、LeetCode干货,以及业界好资源!

2022012703491714

微信来撩,免费咨询:xiaozhu_tec

分享本页
返回顶部