Skip to content
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

add new hub env var section #6059

Closed
wants to merge 5 commits into from
Closed

Conversation

mirnawong1
Copy link
Contributor

this pr adds a new snippet to explain how to use the dbt_package_hub_url in dbt.

the snippet is used in the env var page and packages page.

Resolves #4991

@mirnawong1 mirnawong1 requested a review from a team as a code owner September 13, 2024 10:43
Copy link

vercel bot commented Sep 13, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated (UTC)
docs-getdbt-com 🛑 Canceled (Inspect) Sep 13, 2024 0:27am

@github-actions github-actions bot added content Improvements or additions to content size: small This change will take 1 to 2 days to address Docs team Authored by the Docs team @dbt Labs labels Sep 13, 2024
@@ -0,0 +1,22 @@
If you're hosting an internal version of the [dbt Labs hosted package hub](https://hub.getdbt.com/), you can set the [`DBT_PACKAGE_HUB_URL`](https://github.com/dbt-labs/dbt-core/blob/main/core/dbt/clients/registry.py#L23) environment variable to point to your instance of the dbt package hub. This allows you to install packages from your self-hosted version.
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should i add this at the end: "This allows you to install packages from your self-hosted version and not the public hub version.."

@@ -94,7 +94,7 @@ Where possible, we recommend installing packages via dbt Hub, since this allows

In comparison, other package installation methods are unable to handle the duplicate dbt-utils package.

Advanced users can choose to host an internal version of the package hub based on [this repository](https://github.com/dbt-labs/hub.getdbt.com) and setting the `DBT_PACKAGE_HUB_URL` environment variable.
Advanced users can choose to host an internal version of the package hub based on [this repository](https://github.com/dbt-labs/hub.getdbt.com) and set the `DBT_PACKAGE_HUB_URL` environment variable. Refer to [Using the `DBT_PACKAGE_HUB_URL` environment variable](#using-the-dbt_package_hub_url-environment-variable) for more information.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hiya @mirnawong1

I'm not sure if it's something I'm doing but the link is working for me.

Kind Regards
Natalie

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

oh shoot! great catch!

Copy link
Contributor

@nataliefiann nataliefiann left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hiya @mirnawong1

This is a great PR! One for the links didn't work for me so I've noted that and I left a few non-blocking suggestions. I haven't approved this as of yet as I thought you might want @joellabes to review this first. Let me know if you'd like this approving or if there is anything else I can help with.

Kind Regards
Natalie

@mirnawong1
Copy link
Contributor Author

closingn pr as it's not needed and was addressed in https://github.com/dbt-labs/docs.getdbt.com/pull/5122/files

@mirnawong1 mirnawong1 closed this Sep 16, 2024
@mirnawong1 mirnawong1 deleted the add-dbt-package-hub-env-var branch September 16, 2024 08:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
content Improvements or additions to content Docs team Authored by the Docs team @dbt Labs size: small This change will take 1 to 2 days to address
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Document the existence of DBT_PACKAGE_HUB_URL
2 participants