dbt-snowflake 的 docker 镜像
如何在 bitbucket 管道中运行 dbt 命令?如果我想使用 dbt-snowflake,我应该使用什么正确的 docker 镜像?我尝试了fishtownanalytics/dbt
和joevandyk/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/dbt
and joevandyk/dbt
both:
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 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
在本地拉取图像时,
当我尝试使用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.
如上所述,您需要指定fishtownanalytics的版本。
以下是创建类似管道的完整教程:https:// medium.com/geekculture/automate-dbt-runs-with-bitbucket-pipelines-3e7528ff991f
As mentioned above, you need to specify the version for fishtownanalytics.
Here's a full tutorial for creating a similar pipeline: https://medium.com/geekculture/automate-dbt-runs-with-bitbucket-pipelines-3e7528ff991f