https://github.com/ryansn/schemacrawler_docker
A Docker container for Running SchemaCrawler on Dockerized Databases
https://github.com/ryansn/schemacrawler_docker
database docker postgres relationships schemacrawler
Last synced: 4 months ago
JSON representation
A Docker container for Running SchemaCrawler on Dockerized Databases
- Host: GitHub
- URL: https://github.com/ryansn/schemacrawler_docker
- Owner: ryanSN
- License: mit
- Created: 2018-04-18T17:44:19.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2019-09-17T17:51:07.000Z (about 6 years ago)
- Last Synced: 2025-01-11T20:32:55.635Z (9 months ago)
- Topics: database, docker, postgres, relationships, schemacrawler
- Language: Dockerfile
- Size: 5.86 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
## Schema Crawler Docker image
https://www.schemacrawler.com
#### How to Use
Assume your postgres db is already in an existing containerclone this repo, from this repos directory update the items below and run.
```bash
docker run -v $(pwd):/output --rm -i -t \
--network=[nameOfYourNetworkIfYouHave ie. project_name_no_conflict] \
--link [project_name]_db_1:db chatters/schemacrawler_docker:14.20.04 \
-server=postgresql \
-host=db \
-user=[youDbUserName] \
-password=[yourDbPassword] \
-schema=public \
-database=[mydbname] \
-infolevel=standard \
-command=list \
-outputformat=png \
-outputfile=/output/[mydbname].png \
-loglevel=CONFIG
```This will create a png image in output folder where you checked out this repo.
Ff you output just the dot file and not a png, you will want to install graphviz to run the dot file through it.
To create the png from the dot file on mac
```bash
brew install graphviz
``````bash
dot -Tpng youDbUserName.png.dot -o youDbUserName.png
```