Skip to content

Commit

Permalink
changelog
Browse files Browse the repository at this point in the history
  • Loading branch information
mikealfare committed Apr 5, 2024
1 parent 4d9292f commit db3d70e
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions docker/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ This docker file is suitable for building dbt Docker images locally or using wit
This Dockerfile can create images for the following target: `dbt-postgres`

In order to build a new image, run the following docker command.
```
```shell
docker build --tag <your_image_name> --target dbt-postgres <path/to/dockerfile>
```
---
Expand All @@ -15,7 +15,7 @@ docker build --tag <your_image_name> --target dbt-postgres <path/to/dockerfile>
---

By default the images will be populated with the most recent release of `dbt-postgres`. If you need to use a different version you can specify it by git ref using the `--build-arg` flag:
```
```shell
docker build --tag <your_image_name> \
--target dbt-postgres \
--build-arg dbt_postgres_ref=<git_ref> \
Expand All @@ -24,13 +24,13 @@ docker build --tag <your_image_name> \

### Examples:
To build an image named "my-dbt" that supports Snowflake using the latest releases:
```
```shell
cd dbt-core/docker
docker build --tag my-dbt --target dbt-postgres .
```

To build an image named "my-other-dbt" that supports Snowflake using the adapter version 1.0.0b1:
```
```shell
cd dbt-core/docker
docker build \
--tag my-other-dbt \
Expand All @@ -43,7 +43,7 @@ docker build \
There are a few special cases worth noting:

* If you need to build against another architecture (linux/arm64 in this example) you can override the `build_for` build arg:
```
```shell
docker build --tag my_dbt \
--target dbt-postgres \
--build-arg build_for=linux/arm64 \
Expand All @@ -54,7 +54,7 @@ Supported architectures can be found in the python docker [dockerhub page](https

## Running an image in a container:
The `ENTRYPOINT` for this Dockerfile is the command `dbt` so you can bind-mount your project to `/usr/app` and use dbt as normal:
```
```shell
docker run \
--network=host \
--mount type=bind,source=path/to/project,target=/usr/app \
Expand Down

0 comments on commit db3d70e

Please sign in to comment.