Skip to content

Commit c4246be

Browse files
committed
docs: docker usage
1 parent 9b73e3f commit c4246be

1 file changed

Lines changed: 16 additions & 0 deletions

File tree

README.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,12 @@ go get github.com/holydocs/dberd
2929
go install github.com/holydocs/dberd/cmd/dberd@latest
3030
```
3131

32+
### Docker
33+
34+
```bash
35+
docker pull ghcr.io/holydocs/dberd:latest
36+
```
37+
3238
## Supported Sources
3339

3440
Currently, DBerd supports the following database sources:
@@ -115,6 +121,16 @@ dberd --source cockroach \
115121
--source-dsn "postgres://user@host:port/db?sslmode=disable"
116122
```
117123

124+
Or using Docker:
125+
```bash
126+
docker run --rm -v $(pwd):/work ghcr.io/holydocs/dberd:latest \
127+
--source cockroach \
128+
--target d2 \
129+
--format-to-file /work/schema.d2 \
130+
--render-to-file /work/schema.svg \
131+
--source-dsn "postgres://user@host:port/db?sslmode=disable"
132+
```
133+
118134
For example, if a Cockroach database has a schema like:
119135
```
120136
CREATE TABLE users (

0 commit comments

Comments
 (0)