我如何验证管道的入口点:图像拉失败,向后拉图像和“ hashicorp/terraform”:full quot

发布于 2025-01-20 20:58:44 字数 1260 浏览 0 评论 0原文

我对容器、管道和图像很陌生,所以这里完全是菜鸟。尝试在 Kubernetes 容器中运行 Terratest 以及我的 Terratest go 文件,我正在导入以下内容。我不认为导入是图像的问题,因为 mod 和 sum 文件已经在存储库中,但以防万一。

    "testing"
    "strconv"
    "github.com/Jeffail/gabs"
    "github.com/stretchr/testify/assert"
    "github.com/gruntwork-io/terratest/modules/terraform"
    "github.com/gruntwork-io/terratest/modules/azure"
)

在我的 .yml 文件中,我有以下内容:

image: golang:latest

include: 
  - template: Terraform/Base.latest.gitlab-ci.yml
...
test:
  stage: test
  image:
    name: "hashicorp/terraform:full"

并且我不断收到错误:

Waiting for pod GitLab-apps/runner-randomstringpart to be running, status is Pending
Waiting for pod GitLab-apps/runner-randomstringpart to be running, status is Pending
    ContainersNotReady: "containers with unready status: [build helper]"
    ContainersNotReady: "containers with unready status: [build helper]"
WARNING: Failed to pull image with policy "": image pull failed: Back-off pulling image "hashicorp/terraform:full"
ERROR: Job failed: prepare environment: waiting for pod running: pulling image "hashicorp/terraform:full": image pull failed: Back-off pulling image "hashicorp/terraform:full".

模板不是公开的,因此我可以消除它是权限错误吗?

I'm new to containers, pipelines, and images so full noob here. Trying to run Terratest in a Kubernetes container and my go file for Terratest I'm importing the following. I don't think the imports are the problem of the image since the mod and sum file are in the repo already but just in case.

    "testing"
    "strconv"
    "github.com/Jeffail/gabs"
    "github.com/stretchr/testify/assert"
    "github.com/gruntwork-io/terratest/modules/terraform"
    "github.com/gruntwork-io/terratest/modules/azure"
)

In my .yml file I have the following:

image: golang:latest

include: 
  - template: Terraform/Base.latest.gitlab-ci.yml
...
test:
  stage: test
  image:
    name: "hashicorp/terraform:full"

And I keep getting the error:

Waiting for pod GitLab-apps/runner-randomstringpart to be running, status is Pending
Waiting for pod GitLab-apps/runner-randomstringpart to be running, status is Pending
    ContainersNotReady: "containers with unready status: [build helper]"
    ContainersNotReady: "containers with unready status: [build helper]"
WARNING: Failed to pull image with policy "": image pull failed: Back-off pulling image "hashicorp/terraform:full"
ERROR: Job failed: prepare environment: waiting for pod running: pulling image "hashicorp/terraform:full": image pull failed: Back-off pulling image "hashicorp/terraform:full".

Isn't the template public so I can eliminate that it's a permissions error?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

白况 2025-01-27 20:58:44

没有这样的标签:图像 hashicorp/terraform 的完整。考虑替换为现有的标签,例如> >:最新的:1.1.8

There is no such tag :full for the image hashicorp/terraform. Consider replacing with an existing tag such as :latest or :1.1.8.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文