如果你使用 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 无法访问外链,可 打开说明文档 复制全文粘贴。文档会随站点更新,复制内容可能过期,建议定期检查。
该镜像为Terraform https://github.com/k1LoW/awspec%E6%B5%8B%E8%AF%95%E5%9C%BA%E6%99%AF%E6%9E%84%E5%BB%BA%EF%BC%8C%E9%9B%86%E6%88%90%E4%BA%86Ruby%E3%80%81Terraform%E5%8F%8A%E7%9B%B8%E5%85%B3%E6%B5%8B%E8%AF%95%E5%B7%A5%E5%85%B7%EF%BC%8C%E7%94%A8%E4%BA%8E%E9%AA%8C%E8%AF%81Terraform%E7%AE%A1%E7%90%86%E7%9A%84AWS%E5%9F%BA%E7%A1%80%E8%AE%BE%E6%96%BD%E9%85%8D%E7%BD%AE%EF%BC%8C%E7%AE%80%E5%8C%96%E6%B5%8B%E8%AF%95%E7%8E%AF%E5%A2%83%E6%90%AD%E5%BB%BA%E5%92%8C%E6%89%A7%E8%A1%8C%E6%B5%81%E7%A8%8B%E3%80%82
ruby v2.4.2 gem bundler gem awspec gem kitchen-terraform gem kitchen-verifier-awspec terraform v0.11.7 kubectl Heptio Authenticator v0.3.0
https://hub.docker.com/r/alpine/bundle-terraform-awspec/tags/
https://github.com/alpine-docker/bundle-terraform-awspec/blob/master/Dockerfile
bashdocker build -t terraform-awspec .
适用于使用Terraform管理AWS资源的开发和测试场景,特别适合:
以https://github.com/terraform-aws-modules/terraform-aws-eks.git%E4%B8%BA%E7%A4%BA%E4%BE%8B%EF%BC%9A
bashgit clone https://github.com/terraform-aws-modules/terraform-aws-eks.git cd terraform-aws-eks
bash# 挂载当前目录到容器内/apps,共享本地AWS凭证 docker run -ti -v $(pwd):/apps -v ~/.aws:/root/.aws alpine/bundle-terraform-awspec:1.0 bash
bash# 安装依赖 bundle install # 分步执行测试 bundle exec kitchen create bundle exec kitchen converge bundle exec kitchen setup bundle exec kitchen verify bundle exec kitchen destroy # 或一键执行完整测试流程 bundle exec kitchen test
可将容器命令封装为系统别名,简化使用:
bashalias bundle="docker run -ti --rm -v $(pwd):/apps alpine/bundle-terraform-awspec:1.0 bundle " # 验证别名 bundle --help
如需使用其他Terraform版本:
chmod +x <path>/terraformbashdocker run -ti -v $(pwd):/apps -v ~/.aws:/root/.aws -v <path>/terraform:/usr/bin/terraform alpine/bundle-terraform-awspec:1.0 bash
-v ~/.aws:/root/.aws-e AWS_ACCESS_KEY_ID=xxx -e AWS_SECRET_ACCESS_KEY=xxx -e AWS_SESSION_TOKEN=xxx您可以使用以下命令拉取该镜像。请将 <标签> 替换为具体的标签版本。如需查看所有可用标签版本,请访问 标签列表页面。
来自真实用户的反馈,见证轩辕镜像的优质服务