Getting Started
How to run dbt-bouncer
-
Generate dbt artifacts by running a dbt command:
dbt parse
to generate amanifest.json
artifact.dbt docs generate
to generate acatalog.json
artifact (necessary if you are using catalog checks).
-
Create a
dbt-bouncer.yml
config file, details here. -
Run
dbt-bouncer
to validate that your conventions are being maintained.
Python
Install from pypi.org:
Run:
GitHub Actions
Run dbt-bouncer
as part of your CI pipeline:
steps:
...
- uses: godatadriven/dbt-bouncer@vX.X
with:
config-file: ./<PATH_TO_CONFIG_FILE>
output-file: results.json # optional, default does not save a results file
send-pr-comment: true # optional, defaults to true
...
We recommend pinning both a major and minor version number.
Docker
Run dbt-bouncer
via Docker:
docker run --rm \
--volume "$PWD":/app \
ghcr.io/godatadriven/dbt-bouncer:vX.X.X \
--config-file /app/<PATH_TO_CONFIG_FILE>
Pex
You can also run the .pex
(Python EXecutable) artifact directly once you have a python executable (3.8 -> 3.12) installed: