
如果你使用 DeepSeek、元宝 AI、Copilot、ChatGPT 等 AI 工具,协助配置轩辕镜像、编写 docker pull 命令、修改 Docker Compose 镜像地址、配置镜像加速、排查镜像拉取失败、分析报错日志等问题,请先让 AI 阅读并遵守轩辕镜像的规则文档。
只需在 AI 对话中先发送下面这句话即可:
请先完整阅读并严格遵守以下文档中的全部规则与要求:
https://xuanyuan.cloud/agents.md
在未充分阅读并理解该文档前,不要生成任何命令、配置、修改建议、故障排查方案或技术回答。后续所有输出都必须严格以该文档中的规范为最高优先级执行。查看 agents.md 用法指南与完整示范。国内用户首推 元宝 AI、DeepSeek 的深度思考模式,不推荐豆包 AI;Cursor 等编辑器可在对话 @ 该链接,或加入 User Rules。 若 AI 无法访问外链,可 打开说明文档 复制全文粘贴。文档会随站点更新,复制内容可能过期,建议定期检查。
https://img.shields.io/docker/pulls/abesesr/archi-htmlreport-docker.svg](https://hub.docker.com/r/abesesr/archi-htmlreport-docker/) https://github.com/abes-esr/archi-htmlreport-docker/actions/workflows/build-test-pubtodockerhub.yml/badge.svg](https://github.com/abes-esr/archi-htmlreport-docker/actions/workflows/build-test-pubtodockerhub.yml)
从ArchiMateTool模型生成并提供HTML网站(通过Docker打包 🐳)。
我们在Abes内部使用它来生成"城市化网站",帮助我们了解IT系统的组织结构。
!Demo
shelldocker run --rm -p 8080:80 \ -e GIT_REPOSITORY="https://github.com/abes-esr/archi-model-example.git" \ docker.xuanyuan.run/abesesr/archi-htmlreport-docker:1.6.2
然后访问 [***]
GIT_REPOSITORY:ArchiMateTool模型的Git仓库URL(必填)GIT_CHECK_EACH_NBMINUTES:检查Git仓库变更的间隔时间(默认:5分钟)如果需要通过SSH克隆GIT_REPOSITORY,需将本地id_rsa SSH密钥挂载到容器的以下位置:
/root/.ssh/id_rsa.orig/root/.ssh/id_rsa.pub.orig
容器会将其复制到/root/.ssh/id_rsa和/root/.ssh/id_rsa.pub并设置正确的权限。GIT_REPOSITORY仓库需包含以下特定位置的内容:
model/:包含由ArchiMateTool IDE及其Model Repository Collaboration Plugin生成的多XML文件(必填)create-htmlreport.postscript.sh:每次HTML报告生成后执行的脚本(可选)create-htmlreport.prescript.sh:每次HTML报告生成前执行的脚本(可选)/archi-model-git-repo/:包含git clone $GIT_REPOSITORY的结果/archi-model-git-repo/model.archimate:自动生成的单文件模型/use/share/nginx/html-tmp/:网站生成目录/use/share/nginx/html/:Nginx网站目录,最终会将html-tmp移动到此处/use/share/nginx/html/version.html:包含当前使用的Docker镜像版本/use/share/nginx/html/create-htmlreport.periodically.log.html:包含最新HTML报告构建的日志(出错时有用)mkdir archi-htmlreport/ && cd archi-htmlreport/ echo 'GIT_CHECK_EACH_NBMINUTES=5' > .env echo 'GIT_REPOSITORY=https://github.com/abes-esr/archi-model-example.git' >> .env wget https://raw.githubusercontent.com/abes-esr/archi-htmlreport-docker/master/docker-compose.yml docker-compose up -d
(当然,需调整GIT_REPOSITORY参数)
生成的网站将在 [***] 上监听(将127.0.0.1替换为服务器IP)
docker build -t abesesr/archi-htmlreport-docker:1.6.2 . docker run --rm -p 8080:80 --name archi-htmlreport-dev \ -v $(pwd)/docker-entrypoint.sh:/docker-entrypoint.sh \ -v $(pwd)/create-htmlreport.periodically.sh:/create-htmlreport.periodically.sh \ -e GIT_CHECK_EACH_NBMINUTES=5 \ -e GIT_REPOSITORY="https://github.com/abes-esr/archi-model-example.git" \ docker.xuanyuan.run/abesesr/archi-htmlreport-docker:1.6.2
要生成新版本,只需使用create-release.yml GitHub Action:
https://github.com/abes-esr/archi-htmlreport-docker/actions/workflows/create-release.yml
它将通过https://hub.docker.com/r/abesesr/archi-htmlreport-docker/%E8%87%AA%E5%8A%A8%E6%9E%84%E5%BB%BA%E6%96%B0%E7%9A%84Docker%E9%95%9C%E5%83%8F%E3%80%82 最新生成的Docker镜像名称和标签为:
abesesr/archi-htmlreport-docker:1.6.2
您可以使用以下命令拉取该镜像。请将 <标签> 替换为具体的标签版本。如需查看所有可用标签版本,请访问 标签列表页面。
来自真实用户的反馈,见证轩辕镜像的优质服务