
Allure Portal(Allure Report Server)是一个用于管理Allure测试报告的服务器应用。它允许用户上传Allure测试结果、生成可视化报告,并通过Web界面或API访问这些报告,适用于持续集成/持续部署(CI/CD)流程中测试结果的集中管理与展示。
查看示例:allure.iopump.ru 或 allure-server.herokuapp.com
基本运行
shelldocker pull kochetkovma/allure-server:latest docker run -p 8080:8080 kochetkovma/allure-server:latest
使用docker-compose
shell# 下载项目中的docker-compose.yml # 地址: https://github.com/kochetkov-ma/allure-server/blob/master/docker-compose.yml docker-compose up -d
访问 http://localhost:8080,将自动重定向到OpenAPI(Swagger UI)界面。
数据持久化
如需在本地文件系统存储数据,可挂载卷:
shelldocker run -p 8080:8080 -v /allure-server-store:/allure kochetkovma/allure-server:latest
仅支持Allure 2格式的测试结果。将测试结果打包为zip归档文件(例如根目录下的allure-results.zip),通过以下命令上传:
shellcurl --location --request POST 'http://localhost:8080/api/result' \ --form 'allureResults=@/allure-results.zip;type=application/zip'
响应示例:
json{ "fileName": "allure-results.zip", "uuid": "1037f8be-68fb-4756-98b6-779637aa4670" }
注意:保存返回的uuid,用于后续生成报告。必须指定表单项的Content-Type为application/zip,服务器仅处理zip格式的归档文件。
通过POST请求生成报告,请求体为JSON格式:
shellcurl --location --request POST 'http://localhost:8080/api/report' \ --header 'Content-Type: application/json' \ --data-raw '{ "reportSpec": { "path": [ "master", "666" ], "executorInfo": { "buildName": "#666" } }, "results": [ "1037f8be-68fb-4756-98b6-779637aa4670" ], "deleteResults": false }'
响应示例:
json{ "path": "master/666", "url": "http://localhost:8080/allure/reports/master/666/index.html" }
警告:生成的报告及其历史记录通过path键分组,该键可理解为项目、任务或分支的逻辑标识,而非实际路径。相同path的最新报告将被标记为"活跃",Web UI中的"path"列同样为逻辑路径。
生成报告后,可通过响应中的url直接访问,例如:http://localhost:8080/allure/reports/master/666/index.html
API查询与管理
获取所有报告:
shellcurl --location --request GET 'http://localhost:8080/api/report'
按路径(如分支名master)获取报告:
shellcurl --location --request GET 'http://localhost:8080/api/report?path=master'
获取所有已上传的测试结果:
shellcurl --location --request GET 'http://localhost:8080/api/result'
清除测试结果或报告:
shellcurl --location --request DELETE 'http://localhost:8080/api/result' curl --location --request DELETE 'http://localhost:8080/api/report'
Allure Server提供Web界面用于访问报告和结果,默认路径为/ui,根路径/会自动重定向到/ui。例如:http://localhost:8080/ui。
Web UI功能与REST API一致,基于Vaadin 14实现。
主页面示例:https://github.com/kochetkov-ma/allure-server/blob/master/ui-example.png
项目地址:https://github.com/kochetkov-ma/allure-server
您可以使用以下命令拉取该镜像。请将 <标签> 替换为具体的标签版本。如需查看所有可用标签版本,请访问 标签列表页面。

探索更多轩辕镜像的使用方法,找到最适合您系统的配置方式
通过 Docker 登录认证访问私有仓库
无需登录使用专属域名
Kubernetes 集群配置 Containerd
K3s 轻量级 Kubernetes 镜像加速
VS Code Dev Containers 配置
Podman 容器引擎配置
HPC 科学计算容器配置
ghcr、Quay、nvcr 等镜像仓库
Harbor Proxy Repository 对接专属域名
Portainer Registries 加速拉取
Nexus3 Docker Proxy 内网缓存
需要其他帮助?请查看我们的 常见问题Docker 镜像访问常见问题解答 或 提交工单
docker search 限制
站内搜不到镜像
离线 save/load
插件要用 plugin install
WSL 拉取慢
安全与 digest
新手拉取配置
镜像合规机制
manifest unknown
no matching manifest(架构)
invalid tar header(解压)
TLS 证书失败
DNS 超时
域名连通性排查
410 Gone 排查
402 与流量用尽
401 认证失败
429 限流
D-Bus 凭证提示
413 与超大单层
来自真实用户的反馈,见证轩辕镜像的优质服务