
如果你使用 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 无法访问外链,可 打开说明文档 复制全文粘贴。文档会随站点更新,复制内容可能过期,建议定期检查。
This project aims at preparing operators to send to an IKATS instance.
This operation consists in several parts :
To build the image
bashdocker build . -t operator-fetcher
To run the container
bashdocker run -it \ -e DB_HOST=${database_host} \ -e DB_PORT=${database_port} \ -e DB_USER=${database_username} \ -e DB_PWD=${database_password} \ -e CONNECTION_TIMEOUT=5 \ -v /path/to/cached/operators:/app/fetch-op \ -v /path/to/shared/operators:/app/op \ -v /path/to/local/operators:/app/local \ -v /path/to/custom/repo-list.yml:/app/repo-list.yml \ operator-fetcher
CONNECTION_TIMEOUT corresponds to the number of seconds the app will wait until ***ing the repository not reachable.
Default value is 5. Increase the value if you have a bad connection.
repo-list.yml is the file that indicates where to fetch the operators.
It is a http://yaml.org/ file descri***g a list of the following information:
url: the complete URL to the git repository.
This may be a:
https://github.com/IKATS/op-quality_stats.git)If credentials must be provided, use the following format: https://login:password@company.com/git_repo
ref: a gitreference to the commit to use
This may be a:
04c113bc093dc748583690474d81470b39e05cc8)master)1.8.2)master^)4 volumes are used :
/app/fetch-op: (optional) the path to the fetched operators to be prepared. Mounting it allows faster startup (act as a cache)/app/op: (mandatory) the path to the prepared operators to be provided to other services/app/repo-list.yml : (optional) to set an external repository list different from the official IKATS operators/app/local: (optional) if you plan to use local operator, mount your git workspace here.Assu*ion:**
The repository is located on host machine at /home/developer/op-mysterious-operator
/home/developer/op-mysterious-operator to /app/local/op-mysterious-operatorrepo-list.yml file, set the url field to /app/local/op-mysterious-operatorOperators are fetched into a local cache mounted at /app/fetch-op.
This cache is never cleaned to not rely on Internet connection.
repo-list.yml, do as follows:
urlurl : url described in repo-list.ymlold_commit : corresponds to the commit sha1 of the previous runcommit : corresponds to the commit sha1 of the current runref : corresponds to the requested reference of the current run[%s] No catalog file found.
This message appears when there is no catalog definition file in folder or if it doesn't match the regexp pattern : catalog_def(_[0-9]{,2})?.json.
This warning means that the operator won't be available in IKATS.
Operator already exist with the same name %s
This occurs when at least 2 operators having the same root name are present in repo-list.yml.
You must rename them or activate only one of them.
reference %s not found in repo %s
This occurs when there is no connection to the url (not connected to network, wrong credentials, URL mispelled). The fetch can't be performed so the new reference is not available. You need a connection to the sources.
%s can't be cloned
This occurs when there is no connection to the url (not connected to network, wrong credentials, URL mispelled) and no cache is present. You need a connection to the sources.
JSON bad format for %s
The catalog_def.json contains errors In this case, the operator is ignored
您可以使用以下命令拉取该镜像。请将 <标签> 替换为具体的标签版本。如需查看所有可用标签版本,请访问 标签列表页面。
来自真实用户的反馈,见证轩辕镜像的优质服务