
如果你使用 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 BitBucket pipe will build docker containers, push them to dockerhub and store results info in a file. Even though majority of dockerfiles are able to build applications from scrach, it is better to run this step after the application has been complied in parallel for each target earlier and reuse the artifacts. This step should be followed by a trigger of Kuberentes deployment BB pipe.
deployment/docker-push-config.json - Using this configuration file is optional, all of this configuration can be expressed using pipe parameters.
docker-images.json - result file containg information about created and pushed docker images
Add the following snippet to the script section of your bitbucket-pipelines.yml file:
yaml- step: name: "Push docker Image" script: - pipe: "docker://ligadigital/pipe-docker-push:latest" variables: DOCKER_USER: $DOCKER_USER DOCKER_PASSWORD: $DOCKER_PASSWORD
| Variable | Default | Required | Description |
|---|---|---|---|
DOCKER_USER | yes | Dockerhub credentials | |
DOCKER_PASSWORD | yes | Dockerhub credentials | |
TARGETS | "" | no | Space separated list of targets to build |
TAG_LATEST | "" | no | If true pushes latest tag |
TAG_FORCE | false | no | If true uses latest tag in commit |
DOCKER_ORG | "ligadigital" | no | Dockerhub org |
DOCKER_REPO | $BITBUCKET_REPO_SLUG | no | Docker image repo |
DOCKER_CONTEXT | "." | no | Docker build context |
DOCKER_FILE | "Dockerfile" | no | Default Dockerfile |
DOCKER_BUILDKIT | 0 | no | Use buildkit |
BUILD_ARGS | "" | no | Space separated list of docker build arguments to be passed |
VERSION | `` | no | Dockerhub image tag |
VERSION_FORMAT | "AUTO" | no | Version format |
ARTIFACT_FILE | docker-images.json | no | File with information about built images |
CONFIG_FILE | deployment/docker-push-config.json | no | |
SSH_PRIVATE_KEY | "" | no | SSH key to be passed as docker build arg |
ACTION | build | no | One of build or merge. build will build and push docker imagesandmergewill concat multipleARTIFACT_FILE` files into one that can be easily passed for further processing. |
VERSION variable resolutionPush one image for all targets: ligadigital/<project>:<version>
CODE_TOKEN_1
Push images for multiple targets: ligadigital/<project>:<version>-<target>
Push multiple images from one repository, example 1:
ligadigital/project-a:<version>ligadigital/project-b:<version>-<target>deployment/docker-push-config.json
CODE_TOKEN_3
Push multiple images from one repository, example 2:
ligadigital/project-a:<version>ligadigital/project-b:<version>-<target>CODE_TOKEN_5
Push images from one repository (untested):
ligadigital/project-a:<version>ligadigital/project-b:<version>-<target>yaml- parallel: - step: name: "Push docker Image: project-a" script: - pipe: "docker://ligadigital/pipe-docker-push:latest" artifacts: ['docker-images.project-a.json'] variables: ACTION: "build" DOCKER_USER: $DOCKER_USER DOCKER_PASSWORD: $DOCKER_PASSWORD IMAGES_FILE: "docker-images.project-a.json" DOCKER_REPO: "project-a" DOCKER_CONTEXT: "project-a" - step: name: "Push docker Image: project-b" script: - pipe: "docker://ligadigital/pipe-docker-push:latest" artifacts: ['docker-images.project-b.json'] variables: ACTION: "build" DOCKER_USER: $DOCKER_USER DOCKER_PASSWORD: $DOCKER_PASSWORD IMAGES_FILE: "docker-images.project-b.json" TARGETS: "ln-test pi-test ld-test" DOCKER_REPO: "project-b" DOCKER_CONTEXT: "project-b" DOCKER_IMAGES: '[{ "" }]' - step: name: "Merge docker-images.json" script: - pipe: "docker://ligadigital/pipe-docker-push:latest" artifacts: ['docker-images.json'] variables: ACTION: "merge"
您可以使用以下命令拉取该镜像。请将 <标签> 替换为具体的标签版本。如需查看所有可用标签版本,请访问 标签列表页面。
来自真实用户的反馈,见证轩辕镜像的优质服务