dbt-snowflake 的 docker 镜像

发布于 2025-01-12 04:36:24 字数 438 浏览 3 评论 0原文

如何在 bitbucket 管道中运行 dbt 命令?如果我想使用 dbt-snowflake,我应该使用什么正确的 docker 镜像?我尝试了fishtownanalytics/dbtjoevandyk/dbt两者:

pipelines:
  custom: 
    test-dbt:
      - step:
          name: 'Test'
          image: fishtownanalytics/dbt
          script:
            - cd dbt_4flow
            - dbt compile

但我仍然收到此错误:

+ dbt compile
bash: dbt: command not found

How can I run dbt commands within a bitbucket pipeline? What is the correct docker image that I should be using if I wanted to use dbt-snowflake? I tried fishtownanalytics/dbtand joevandyk/dbtboth:

pipelines:
  custom: 
    test-dbt:
      - step:
          name: 'Test'
          image: fishtownanalytics/dbt
          script:
            - cd dbt_4flow
            - dbt compile

but I still get this error:

+ dbt compile
bash: dbt: command not found

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

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

发布评论

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

评论(2

今天小雨转甜 2025-01-19 04:36:24

在本地拉取图像时,

当我尝试使用docker pull Fishtownanalytics/dbt

我无法,但通过添加版本:

docker pull Fishtownanalytics/dbt:1.0.0

可以正常工作。

您需要将该版本添加到您的 bitbucket 管道中,这样您就可以做到这一点。

When I try to pull the image locally using

docker pull fishtownanalytics/dbt

I am not able, but by adding the version:

docker pull fishtownanalytics/dbt:1.0.0

It's working.

You need to add the version to your bitbucket pipeline, so you will be able to do it.

谈下烟灰 2025-01-19 04:36:24

如上所述,您需要指定fishtownanalytics的版本。

image: fishtownanalytics/dbt:1.0.0

以下是创建类似管道的完整教程:https:// medium.com/geekculture/automate-dbt-runs-with-bitbucket-pipelines-3e7528ff991f

As mentioned above, you need to specify the version for fishtownanalytics.

image: fishtownanalytics/dbt:1.0.0

Here's a full tutorial for creating a similar pipeline: https://medium.com/geekculture/automate-dbt-runs-with-bitbucket-pipelines-3e7528ff991f

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