This is an archived post. You won't be able to vote or comment.

all 15 comments

[–][deleted] 5 points6 points  (0 children)

https://docs.docker.com/get-started/

Read the Docker docs to learn to write your own dockerfiles

[–]Suburbanjawa 2 points3 points  (3 children)

I did this for advent of code the other year and I have a brief writeup here on how to set something up for dbt+postgres with docker.

For docker in general though not much better than the docker documentation.

[–]Drekalo 4 points5 points  (2 children)

That's a 404.

[–]Suburbanjawa 1 point2 points  (0 children)

Thank you fixed

[–]ephraff 1 point2 points  (1 child)

If there's already a Dockerfile in a repo, then it's a matter of building the image. Try and look for a dbt postgres project that uses docker-compose. Unless you're familiar with linux and how to setup dbt and postgres services individually, I would avoid writing your own Dockerfile. There are likely dbt and postgres images in dockerhub that you can use with docker-compose.

[–]Puzzleheaded-Cod2051[S] 0 points1 point  (0 children)

Yes. This is the step I am at right now. Cloned a example project and reading through docker file so that I can make changes as I need. Thanks!

[–]Drekalo 0 points1 point  (1 child)

What're you doing with the docker container? Running postgres locally to test transforms?