Skip to content

Commit

Permalink
Adding usage guide to README
Browse files Browse the repository at this point in the history
  • Loading branch information
pgoslatara committed Jul 19, 2024
1 parent cebccaf commit 8faf7a0
Show file tree
Hide file tree
Showing 2 changed files with 40 additions and 0 deletions.
40 changes: 40 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,46 @@ Configure and enforce conventions for your dbt project.
<img src="./images/logo.webp" alt="dbt-bouncer logo" width="500"/>
</p>

# How to use

Generate a `manifest.json` by running `dbt parse`. Once completed, run `dbt-bouncer` to validate that your conventions are being maintained.

## GitHub Actions

```yaml
steps:
...

- uses: godatadriven/dbt-bouncer@v0
with:
dbt-artifacts-dir: ./<PATH_TO_DBT_PROJECT>/target

...
```

## Docker

Don't use GitHub Actions? You can still use dbt-bouncer via Docker:

```bash
docker pull ghcr.io/godatadriven/dbt-bouncer:v0

docker run --rm \
--volume "$PWD/<PATH_TO_DBT_PROJECT>/target":/<PATH_TO_DBT_PROJECT>/target \
ghcr.io/godatadriven/dbt-bouncer:v0 \
/dbt-bouncer.pex --dbt-artifacts-dir <PATH_TO_DBT_PROJECT>/target
```

## Pex

You can also run the `.pex` artifact directly once you have a python executable installed:

```bash
wget https://github.com/godatadriven/dbt-bouncer/blob/v0/dist/dbt-bouncer.pex -O dbt-bouncer.pex

dbt-bouncer.pex --dbt-artifacts-dir <PATH_TO_DBT_PROJECT>/target
```

# Development

To setup your development environment, fork this repository and run:
Expand Down
Binary file modified dist/dbt-bouncer.pex
Binary file not shown.

0 comments on commit 8faf7a0

Please sign in to comment.