-
Notifications
You must be signed in to change notification settings - Fork 975
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Correct bind mount for profiles.yml in documentation #6641
Conversation
Corrects the bind mount for profiles.yml which previously mounted the host profiles.yml file to /root/.dbt.
Hello!👋 Thanks for contributing to the dbt product documentation and opening this pull request! ✨ |
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
@Sparrow0hawk is attempting to deploy a commit to the dbt-labs Team on Vercel. A member of the Team first needs to authorize it. |
both options work as confirmed by @jeremyyeo
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
hey @Sparrow0hawk , thanks for opening this up and great addition! i've consulted with my teammate @jeremyyeo and it looks like both options work so i've added that there. thanks again!
Hi @mirnawong1 and @jeremyyeo thanks for this. Just to confirm I cannot get the previous documented way to work. I'm running Docker version 27.3.1, build ce12230, if I run the following command within my DBT project directory it does not find my profiles.yml. docker run \
--network=host \
--mount type=bind,source=${PWD},target=/usr/app \
--mount type=bind,source=${PWD}/profiles.yml,target=/root/.dbt/ \
ghcr.io/dbt-labs/dbt-bigquery:1.9.latest \
run
11:53:26 Running with dbt=1.9.0
11:53:26 Encountered an error:
Runtime Error
Could not find profile named 'transformations' If I get the container to run ls on /root/.dbt/ it gives an error saying the directory does not exist: docker run \
--entrypoint "ls" \
--rm -it \
--mount type=bind,source=${PWD},target=/usr/app \
--mount type=bind,source=${PWD}/profiles.yml,target=/root/.dbt/ \
ghcr.io/dbt-labs/dbt-bigquery:1.9.latest \
/root/.dbt/
ls: cannot access '/root/.dbt/': Not a directory If I shell into the container and |
What are you changing in this pull request and why?
Corrects the bind mount for profiles.yml which previously mounted the host profiles.yml file to /root/.dbt in the Docker install instructions.
Checklist